1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
|
Author: Thorsten Alteholz <debian@alteholz.de>
Description: void crash if there is nothing to play
--- rplay.orig/contrib/mailsound/mailsound.c
+++ rplay/contrib/mailsound/mailsound.c
@@ -132,8 +132,8 @@
{
compare(buffer, address, size);
}
-
- play_sound(av[1], 0);
+ /* if there is nothing to play, play nothing */
+ if (av[1]!=NULL) play_sound(av[1], 0);
fclose(fl);
exit(0);
}
@@ -189,9 +189,7 @@
av[ac++] = token;
token = strtok(NULL, " \t");
}
-
subject_re = NULL;
-
parse_args(ac, av, size);
if (subject_re)
|