dix: protect input_option_set_value() from NULL pointer
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
This commit is contained in:
parent
3178018b84
commit
8a5b65529c
|
@ -1016,8 +1016,7 @@ void
|
|||
input_option_set_value(InputOption *opt, const char *value)
|
||||
{
|
||||
free(opt->opt_val);
|
||||
if (value)
|
||||
opt->opt_val = strdup(value);
|
||||
opt->opt_val = (value ? strdup(value) : NULL);
|
||||
}
|
||||
|
||||
/* FP1616/FP3232 conversion functions.
|
||||
|
|
Loading…
Reference in New Issue