diff options
author | Tim Potter <tpot@samba.org> | 2000-12-01 04:10:54 +0000 |
---|---|---|
committer | Tim Potter <tpot@samba.org> | 2000-12-01 04:10:54 +0000 |
commit | 38a585c99d6373e846de19fdd75b4df259806fc7 (patch) | |
tree | 2a8ac0c22ee14303e6ac40ce7b181d0575bd61d4 /source3 | |
parent | afa1a5abaaedd4a722ba9c040dae4271be3ac277 (diff) | |
download | samba-38a585c99d6373e846de19fdd75b4df259806fc7.tar.gz samba-38a585c99d6373e846de19fdd75b4df259806fc7.tar.bz2 samba-38a585c99d6373e846de19fdd75b4df259806fc7.zip |
Allow zero length smb.conf files.
(This used to be commit 46007a541cd2497c14659a10ba24a6d0a375ac5a)
Diffstat (limited to 'source3')
-rw-r--r-- | source3/lib/util_file.c | 2 |
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; |