[maemo-commits] [maemo-commits] r11603 - projects/haf/trunk/hildon-fm/hildon-fm
From: subversion at stage.maemo.org subversion at stage.maemo.orgDate: Fri May 11 17:22:37 EEST 2007
- Previous message: [maemo-commits] r11602 - projects/haf/hafbuildbot
- Next message: [maemo-commits] r11604 - projects/haf/trunk/hildon-fm
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Author: marivoll Date: 2007-05-11 17:22:36 +0300 (Fri, 11 May 2007) New Revision: 11603 Modified: projects/haf/trunk/hildon-fm/hildon-fm/hildon-file-system-private.c Log: * hildon-fm/hildon-file-system-private.c (_hildon_file_system_compare_ignore_last_separator): Return FALSE when one of the strings is NULL, for extra robustness. Modified: projects/haf/trunk/hildon-fm/hildon-fm/hildon-file-system-private.c =================================================================== --- projects/haf/trunk/hildon-fm/hildon-fm/hildon-file-system-private.c 2007-05-11 14:17:42 UTC (rev 11602) +++ projects/haf/trunk/hildon-fm/hildon-fm/hildon-file-system-private.c 2007-05-11 14:22:36 UTC (rev 11603) @@ -52,11 +52,15 @@ /* Let's make sure that we survise with folder names both ending and * not ending to slash */ -gboolean _hildon_file_system_compare_ignore_last_separator(const char *a, - const char *b) +gboolean +_hildon_file_system_compare_ignore_last_separator(const char *a, + const char *b) { gint len_a, len_b; + if (a == NULL || b == NULL) + return FALSE; + /* XXX - Canonicalize the "file://" prefix away since not all path strings use it uniformly. We should really be using the GtkFileSystem path manipulation API religiously instead
- Previous message: [maemo-commits] r11602 - projects/haf/hafbuildbot
- Next message: [maemo-commits] r11604 - projects/haf/trunk/hildon-fm
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]