[maemo-commits] [maemo-commits] r16288 - projects/haf/branches/hildon-thumbnail/daemonize/daemon
From: subversion at stage.maemo.org subversion at stage.maemo.orgDate: Mon Sep 29 20:59:53 EEST 2008
- Previous message: [maemo-commits] r16287 - projects/haf/branches/hildon-thumbnail/daemonize/albumart-providers/googleimages
- Next message: [maemo-commits] r16289 - projects/haf/branches/hildon-thumbnail/daemonize/daemon
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Author: pvanhoof Date: 2008-09-29 20:59:39 +0300 (Mon, 29 Sep 2008) New Revision: 16288 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:24:57 UTC (rev 16287) +++ projects/haf/branches/hildon-thumbnail/daemonize/daemon/albumart.c 2008-09-29 17:59:39 UTC (rev 16288) @@ -118,6 +118,15 @@ WorkTask *task; static guint num = 0; + if (uri && strlen (uri) <= 0) + uri = NULL; + + if (artist && strlen (artist) <= 0) + artist = NULL; + + if (album && strlen (album) <= 0) + album = NULL; + if (!uri && (!album || !artist)) return; @@ -129,7 +138,7 @@ task->num = ++num; task->object = g_object_ref (object); - if (album && artist && (strlen (album) > 0) && strlen (artist) > 0) { + if (album && artist) { task->album = g_strdup (album); task->artist = g_strdup (album); } if (uri)
- Previous message: [maemo-commits] r16287 - projects/haf/branches/hildon-thumbnail/daemonize/albumart-providers/googleimages
- Next message: [maemo-commits] r16289 - projects/haf/branches/hildon-thumbnail/daemonize/daemon
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]