summaryrefslogtreecommitdiff
path: root/audio/mpg123/files/patch-ag
blob: 3080572f240b821a0bcd5534a7299926e0a09449 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
--- mpg123.c.orig	Fri Jun 18 14:18:11 1999
+++ mpg123.c	Mon Feb 10 11:58:08 2003
@@ -920,10 +920,10 @@
 
 #if !defined(GENERIC)
 {
-     const char *term_type;
-         term_type = getenv("TERM");
-         if (!strcmp(term_type,"xterm"))
-         {
+  const char *term_type;
+
+         if (((term_type = getenv("TERM")) != NULL)
+		&& (!strcmp(term_type,"xterm"))) {
            fprintf(stderr, "\033]0;%s\007", filename);
          }
 }