From: Richard M. Stallman Date: Mon, 29 Jul 1996 04:21:23 +0000 (+0000) Subject: (lock_file_owner_name): Always initialize the_pw. X-Git-Tag: emacs-19.34~65 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=e0e0205b0271c4de43123aaf338a94f4e771e232;p=emacs.git (lock_file_owner_name): Always initialize the_pw. --- diff --git a/src/filelock.c b/src/filelock.c index 27b4be4ad35..5393867063c 100644 --- a/src/filelock.c +++ b/src/filelock.c @@ -166,6 +166,9 @@ lock_file_owner_name (lfname) if (lstat (lfname, &s) == 0) the_pw = getpwuid (s.st_uid); + else + the_pw = 0; + return (the_pw == 0 ? Qnil : build_string (the_pw->pw_name)); }