mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-06 04:30:57 +00:00
libs/wine: Use xstrdup to avoid duplicate code.
This commit is contained in:
parent
58e5ea2cfd
commit
1c559eb474
|
@ -203,7 +203,7 @@ static void init_paths(void)
|
|||
|
||||
if (prefix)
|
||||
{
|
||||
if (!(config_dir = strdup( prefix ))) fatal_error( "virtual memory exhausted\n");
|
||||
config_dir = xstrdup( prefix );
|
||||
remove_trailing_slashes( config_dir );
|
||||
if (config_dir[0] != '/')
|
||||
fatal_error( "invalid directory %s in WINEPREFIX: not an absolute path\n", prefix );
|
||||
|
|
Loading…
Reference in a new issue