summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2012-06-20 10:43:29 +0200
committerMichael Adam <obnox@samba.org>2012-06-20 10:51:14 +0200
commit0f65745277d7ba73156593670a6d60b0883176fd (patch)
treeec6ad6658368af75a039c27196c614abb5203d9f /source3
parent7c0f12573ff24fe44f917b2374611942bf531117 (diff)
downloadsamba-0f65745277d7ba73156593670a6d60b0883176fd.tar.gz
samba-0f65745277d7ba73156593670a6d60b0883176fd.tar.bz2
samba-0f65745277d7ba73156593670a6d60b0883176fd.zip
idmap-hash: Adapt mapfile_read_line to README.Coding
Signed-off-by: Michael Adam <obnox@samba.org>
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;
}