From 38a585c99d6373e846de19fdd75b4df259806fc7 Mon Sep 17 00:00:00 2001 From: Tim Potter Date: Fri, 1 Dec 2000 04:10:54 +0000 Subject: Allow zero length smb.conf files. (This used to be commit 46007a541cd2497c14659a10ba24a6d0a375ac5a) --- source3/lib/util_file.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'source3/lib/util_file.c') 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; -- cgit