From c7ddaacd269528dd10aabdc5ce5ad05b6c66a601 Mon Sep 17 00:00:00 2001 From: Tim Potter Date: Fri, 5 May 2000 04:18:22 +0000 Subject: Fix for crash bug in OpenConfFile() if no smb.conf exists. (This used to be commit b531ddb2657e9eac1c1e9f32344b67c3963ce30a) --- source3/param/params.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source3') diff --git a/source3/param/params.c b/source3/param/params.c index 8e92621791..1cf3aa9eb1 100644 --- a/source3/param/params.c +++ b/source3/param/params.c @@ -537,7 +537,7 @@ static myFILE *OpenConfFile( char *FileName ) ("%s Unable to open configuration file \"%s\":\n\t%s\n", func, FileName, strerror(errno)) ); free(ret); - ret = NULL; + return NULL; } ret->p = ret->buf; -- cgit