1
0
Fork 0
mirror of https://gitlab.com/sortix/sortix.git synced 2023-02-13 20:55:38 -05:00

Fix uninitialized variable in chvideomode option parsing.

This commit is contained in:
Jonas 'Sortie' Termansen 2015-12-23 17:22:41 +01:00
parent 8274981a81
commit 1e7bbace90

View file

@ -212,7 +212,7 @@ bool string_parameter(const char* option,
if ( strncmp(option, arg, option_len) != 0 )
return false;
if ( arg[option_len] == '=' )
return arg + option_len + 1;
return *result = arg + option_len + 1, true;
if ( arg[option_len] != '\0' )
return false;
if ( *ip + 1 == argc )