Commit f97636bc authored by James Larrowe's avatar James Larrowe Committed by Alexandre Julliard

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: 's avatarJames Larrowe <larrowe.semaj11@gmail.com> Signed-off-by: 's avatarAlexandre Julliard <julliard@winehq.org>
parent 7f7c703e
......@@ -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 */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment