summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
Diffstat (limited to 'source3')
-rw-r--r--source3/winbindd/idmap_hash/mapfile.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source3/winbindd/idmap_hash/mapfile.c b/source3/winbindd/idmap_hash/mapfile.c
index b1f2e6eb5c..ec846f37eb 100644
--- a/source3/winbindd/idmap_hash/mapfile.c
+++ b/source3/winbindd/idmap_hash/mapfile.c
@@ -67,7 +67,8 @@ static bool mapfile_read_line(fstring key, fstring value)
if (!lw_map_file)
return false;
- if (x_fgets(buffer, sizeof(buffer)-1, lw_map_file) == NULL) {
+ p = x_fgets(buffer, sizeof(buffer)-1, lw_map_file);
+ if (p == NULL) {
return false;
}