aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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)
166 166
167 if (lstat (lfname, &s) == 0) 167 if (lstat (lfname, &s) == 0)
168 the_pw = getpwuid (s.st_uid); 168 the_pw = getpwuid (s.st_uid);
169 else
170 the_pw = 0;
171
169 return (the_pw == 0 ? Qnil : build_string (the_pw->pw_name)); 172 return (the_pw == 0 ? Qnil : build_string (the_pw->pw_name));
170} 173}
171 174