(!1967) 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
							
								
									36d533f830
								
							
						
					
					
						commit
						b8209d0342
					
				|  | @ -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