File: 30_contrib.patch

package info (click to toggle)
rplay 3.3.2-22
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 5,132 kB
  • sloc: ansic: 42,169; makefile: 1,282; perl: 742; tcl: 345; sh: 311; java: 220
file content (25 lines) | stat: -rw-r--r-- 556 bytes parent folder | download | duplicates (6)
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)