Commit d0f434eb authored by André Hentschel's avatar André Hentschel Committed by Alexandre Julliard

winebuild: Don't segfault when run without arguments.

parent f46f9261
......@@ -142,13 +142,13 @@ static void set_dll_file_name( const char *name, DLLSPEC *spec )
/* set the dll name from the file name */
static void init_dll_name( DLLSPEC *spec )
{
if (!spec->file_name)
if (!spec->file_name && output_file_name)
{
char *p;
spec->file_name = xstrdup( output_file_name );
if ((p = strrchr( spec->file_name, '.' ))) *p = 0;
}
if (!spec->dll_name) /* set default name from file name */
if (!spec->dll_name && spec->file_name) /* set default name from file name */
{
char *p;
spec->dll_name = xstrdup( spec->file_name );
......
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