summaryrefslogtreecommitdiff
path: root/src/filelock.c
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>1996-07-29 04:21:23 +0000
committerRichard M. Stallman <rms@gnu.org>1996-07-29 04:21:23 +0000
commit2ed930420bbea2f0ed07c3ac13e75c83443bf4b2 (patch)
treee9fc7ca3e21ce484125422a5141d50a8c26d6422 /src/filelock.c
parentae3bab07db9ce1c5eba7f6ab2a19f7bd1f6603cc (diff)
downloademacs-2ed930420bbea2f0ed07c3ac13e75c83443bf4b2.tar.gz
(lock_file_owner_name): Always initialize the_pw.
Diffstat (limited to 'src/filelock.c')
-rw-r--r--src/filelock.c3
1 files changed, 3 insertions, 0 deletions
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));
}