[maemo-commits] [maemo-commits] r16289 - projects/haf/branches/hildon-thumbnail/daemonize/daemon

From: subversion at stage.maemo.org subversion at stage.maemo.org
Date: Mon Sep 29 21:00:46 EEST 2008
Author: pvanhoof
Date: 2008-09-29 21:00:44 +0300 (Mon, 29 Sep 2008)
New Revision: 16289

Modified:
   projects/haf/branches/hildon-thumbnail/daemonize/daemon/albumart.c
Log:
Detecting nullsized string

Modified: projects/haf/branches/hildon-thumbnail/daemonize/daemon/albumart.c
===================================================================
--- projects/haf/branches/hildon-thumbnail/daemonize/daemon/albumart.c	2008-09-29 17:59:39 UTC (rev 16288)
+++ projects/haf/branches/hildon-thumbnail/daemonize/daemon/albumart.c	2008-09-29 18:00:44 UTC (rev 16289)
@@ -127,8 +127,11 @@
 	if (album && strlen (album) <= 0)
 		album = NULL;
 
-	if (!uri && (!album || !artist))
+	if (!uri && (!album || !artist)) {
+		num++;
+		dbus_g_method_return (context, num);
 		return;
+	}
 
 	task = g_slice_new0 (WorkTask);
 


More information about the maemo-commits mailing list