backport fix for bug #2970. (from 2.0 branch commit 52007e252a1c). SDL-1.2
authorOzkan Sezer <sezeroz@gmail.com>
Sun, 07 Oct 2018 12:35:02 +0300
branchSDL-1.2
changeset 8933d9130c0136d
parent 892 9dd046cb6cd7
child 894 77d5b8c518e7
backport fix for bug #2970. (from 2.0 branch commit 52007e252a1c).
music_cmd.c
     1.1 --- a/music_cmd.c	Sun Oct 07 12:32:15 2018 +0300
     1.2 +++ b/music_cmd.c	Sun Oct 07 12:35:02 2018 +0300
     1.3 @@ -170,10 +170,10 @@
     1.4  		    argv = parse_args(command, music->file);
     1.5  		    if ( argv != NULL ) {
     1.6  			execvp(argv[0], argv);
     1.7 +
     1.8 +			/* exec() failed */
     1.9 +			perror(argv[0]);
    1.10  		    }
    1.11 -
    1.12 -		    /* exec() failed */
    1.13 -		    perror(argv[0]);
    1.14  		    _exit(-1);
    1.15  		}
    1.16  		break;