changeset 2428:e832d4981008 trunk

[svn] - make sure tooltip_file != NULL otherwise filepopup may crash in strcmp().
author yaz
date Sat, 27 Jan 2007 08:22:15 -0800
parents 64948ea58c53
children ca5b5523cc2d
files ChangeLog src/audacious/ui_fileinfopopup.c
diffstat 2 files changed, 10 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Sat Jan 27 07:34:13 2007 -0800
+++ b/ChangeLog	Sat Jan 27 08:22:15 2007 -0800
@@ -1,3 +1,11 @@
+2007-01-27 15:34:13 +0000  Yoshiki Yazawa <yaz@cc.rim.or.jp>
+  revision [3864]
+  - revise logic of r3808 so that cdaudio works again.
+  
+  trunk/src/audacious/input.c |    5 +----
+  1 file changed, 1 insertion(+), 4 deletions(-)
+
+
 2007-01-27 14:09:45 +0000  Michael Farber <01mf02@gmail.com>
   revision [3862]
   - removed xmms_ prefix from formatter
--- a/src/audacious/ui_fileinfopopup.c	Sat Jan 27 07:34:13 2007 -0800
+++ b/src/audacious/ui_fileinfopopup.c	Sat Jan 27 08:22:15 2007 -0800
@@ -281,8 +281,8 @@
 
   if ( ( time != -1 ) &&
        ( length != -1 ) &&
-       ( ( current_file != NULL ) && ( !strcmp(tooltip_file,current_file) ) &&
-         ( cfg.filepopup_showprogressbar ) ) )
+       ( ( current_file != NULL ) && ( tooltip_file != NULL ) &&
+	 ( !strcmp(tooltip_file, current_file) ) && ( cfg.filepopup_showprogressbar ) ) )
   {
     gchar *progress_time = g_strdup_printf("%d:%02d", time / 60000, (time / 1000) % 60);
     gtk_progress_bar_set_fraction( GTK_PROGRESS_BAR(progressbar) , (gdouble)time / (gdouble)length );