changeset 1053:149fc284aa86 trunk

[svn] - statusicon: strenghten checks before last strcmp in si_ui_statusicon_cb_hook_tchange
author giacomo
date Tue, 22 May 2007 01:56:51 -0700
parents 61723217c8cc
children 2d6a00ed166f
files ChangeLog src/statusicon/si_ui.c
diffstat 2 files changed, 10 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Mon May 21 16:34:55 2007 -0700
+++ b/ChangeLog	Tue May 22 01:56:51 2007 -0700
@@ -1,3 +1,10 @@
+2007-05-21 23:34:55 +0000  Tony Vroon <chainsaw@gentoo.org>
+  revision [2270]
+  Isn't that cute. But it's WRONG
+  trunk/src/modplug/modplug.cxx |    4 ++--
+  1 file changed, 2 insertions(+), 2 deletions(-)
+
+
 2007-05-21 23:32:42 +0000  Tony Vroon <chainsaw@gentoo.org>
   revision [2268]
   dnl CD-Audio New Generation; you need to add cdaudio-ng to INPUT_PLUGINS if CDIO_LIBS is set. Or something like that. Good luck.
--- a/src/statusicon/si_ui.c	Mon May 21 16:34:55 2007 -0700
+++ b/src/statusicon/si_ui.c	Tue May 22 01:56:51 2007 -0700
@@ -261,7 +261,9 @@
       prevs->filename = g_strdup(pl_entry->filename);
     }
   }
-  else if ( ( prevs->title != NULL ) && ( strcmp(pl_entry->title,prevs->title) ) )
+  else if ( ( prevs->title != NULL ) &&
+            ( pl_entry->title != NULL ) &&
+            ( strcmp(pl_entry->title,prevs->title) ) )
   {
     g_free(prevs->title);
     prevs->title = g_strdup(pl_entry->title);