winebuild: Fix a segmentation fault.
When 'winebuild' is called with no arguments, the make_c_identifier function is passed a null pointer, which is dereferenced and causes a segmentation fault. Signed-off-by: James Larrowe <larrowe.semaj11@gmail.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
7f7c703eb9
commit
f97636bc49
|
@ -164,7 +164,7 @@ static void init_dll_name( DLLSPEC *spec )
|
|||
spec->dll_name = xstrdup( spec->file_name );
|
||||
if ((p = strrchr( spec->dll_name, '.' ))) *p = 0;
|
||||
}
|
||||
spec->c_name = make_c_identifier( spec->dll_name );
|
||||
if (spec->dll_name) spec->c_name = make_c_identifier( spec->dll_name );
|
||||
}
|
||||
|
||||
/* set the dll subsystem */
|
||||
|
|
Loading…
Reference in New Issue