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
commite0e0205b0271c4de43123aaf338a94f4e771e232 (patch)
tree36adb934f67da6a294cbfa8784246bcd7868d81e /src/filelock.c
parent87a3fd191da333803fe18a7c34d784fd022989fd (diff)
downloademacs-e0e0205b0271c4de43123aaf338a94f4e771e232.tar.gz
emacs-e0e0205b0271c4de43123aaf338a94f4e771e232.tar.bz2
emacs-e0e0205b0271c4de43123aaf338a94f4e771e232.zip
(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));
}