summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Potter <tpot@samba.org>2000-12-01 04:10:54 +0000
committerTim Potter <tpot@samba.org>2000-12-01 04:10:54 +0000
commit38a585c99d6373e846de19fdd75b4df259806fc7 (patch)
tree2a8ac0c22ee14303e6ac40ce7b181d0575bd61d4
parentafa1a5abaaedd4a722ba9c040dae4271be3ac277 (diff)
downloadsamba-38a585c99d6373e846de19fdd75b4df259806fc7.tar.gz
samba-38a585c99d6373e846de19fdd75b4df259806fc7.tar.bz2
samba-38a585c99d6373e846de19fdd75b4df259806fc7.zip
Allow zero length smb.conf files.
(This used to be commit 46007a541cd2497c14659a10ba24a6d0a375ac5a)
-rw-r--r--source3/lib/util_file.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/source3/lib/util_file.c b/source3/lib/util_file.c
index e21aafa009..33a687950d 100644
--- a/source3/lib/util_file.c
+++ b/source3/lib/util_file.c
@@ -385,8 +385,6 @@ char *file_load(char *fname, size_t *size)
if (sys_fstat(fd, &sbuf) != 0) return NULL;
- if (sbuf.st_size == 0) return NULL;
-
p = (char *)malloc(sbuf.st_size+1);
if (!p) return NULL;