1
0
mirror of https://github.com/wine-mirror/wine synced 2024-07-03 08:19:41 +00:00

winegcc: Don't print a potentially reallocated pointer.

This commit is contained in:
Alexandre Julliard 2024-05-24 18:41:12 +02:00
parent 83888e37df
commit a03bd94204

View File

@ -199,13 +199,14 @@ const char *find_binary( struct strarray prefix, const char *name )
int spawn(struct strarray prefix, struct strarray args, int ignore_errors)
{
int status;
const char *cmd;
args.str[0] = find_binary( prefix, args.str[0] );
cmd = args.str[0] = find_binary( prefix, args.str[0] );
if (verbose) strarray_trace( args );
if ((status = strarray_spawn( args )) && !ignore_errors)
{
if (status > 0) error("%s failed\n", args.str[0]);
if (status > 0) error("%s failed\n", cmd);
else perror("winegcc");
exit(3);
}