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:
James Larrowe 2019-01-12 17:01:08 -05:00 committed by Alexandre Julliard
parent 7f7c703eb9
commit f97636bc49
1 changed files with 1 additions and 1 deletions

View File

@ -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 */