changeset 15797:24c31fcbcf97

(lock_file_owner_name): Always initialize the_pw.
author Richard M. Stallman <rms@gnu.org>
date Mon, 29 Jul 1996 04:21:23 +0000
parents 0cddfd1a946e
children a745f54990f5
files src/filelock.c
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/filelock.c	Sun Jul 28 02:20:21 1996 +0000
+++ b/src/filelock.c	Mon Jul 29 04:21:23 1996 +0000
@@ -166,6 +166,9 @@
 
   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));
 }