From 4b656fdc45ffdb2bc2fdc9cadfa10fb6846a714c Mon Sep 17 00:00:00 2001 From: AngelCarpintero Date: Mon, 17 Sep 2007 03:27:58 +0000 Subject: [PATCH] Fix segmentation fault in http control. --- webhttpd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webhttpd.c b/webhttpd.c index 41b02940..0f0fddc3 100644 --- a/webhttpd.c +++ b/webhttpd.c @@ -527,7 +527,7 @@ static int config(char *pointer, char *res, int length_uri, int thread, int clie if (!strcmp ("bool",config_type(&config_params[i])) ){ char option[80] = {'\0'}; - if (!strcmp ("on", value)) + if (value != NULL) sprintf(option,"\n" "\n"); else