]> git.eshelyaron.com Git - emacs.git/commitdiff
(lock_file_owner_name): Always initialize the_pw.
authorRichard M. Stallman <rms@gnu.org>
Mon, 29 Jul 1996 04:21:23 +0000 (04:21 +0000)
committerRichard M. Stallman <rms@gnu.org>
Mon, 29 Jul 1996 04:21:23 +0000 (04:21 +0000)
src/filelock.c

index 27b4be4ad35eee3f212a60aa2477b2533d8c2b62..5393867063c96d4e84889806e3f9fec53d4dd0f8 100644 (file)
@@ -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));
 }