Commit 1c559eb4 authored by Detlef Riekenberg's avatar Detlef Riekenberg Committed by Alexandre Julliard

libs/wine: Use xstrdup to avoid duplicate code.

parent 58e5ea2c
...@@ -203,7 +203,7 @@ static void init_paths(void) ...@@ -203,7 +203,7 @@ static void init_paths(void)
if (prefix) if (prefix)
{ {
if (!(config_dir = strdup( prefix ))) fatal_error( "virtual memory exhausted\n"); config_dir = xstrdup( prefix );
remove_trailing_slashes( config_dir ); remove_trailing_slashes( config_dir );
if (config_dir[0] != '/') if (config_dir[0] != '/')
fatal_error( "invalid directory %s in WINEPREFIX: not an absolute path\n", prefix ); fatal_error( "invalid directory %s in WINEPREFIX: not an absolute path\n", prefix );
......
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