mirror of
https://github.com/Motion-Project/motion.git
synced 2026-04-19 13:36:59 -04:00
Fix segmentation fault in http control.
This commit is contained in:
@@ -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,"<option value='on' selected>on</option>\n"
|
||||
"<option value='off'>off</option>\n");
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user