aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMichael Terry <mike@mterry.name>2011-02-25 08:45:31 -0500
committerMichael Terry <mike@mterry.name>2011-02-25 08:45:31 -0500
commit6a1c35a64e0dba477bd654d682f1e90c95361f78 (patch)
treedbb696bbdd5b7700f5932e63238387cb7335c1cf /src
parent63807a063a5545df5b6dc5ea51e8d3dc895eb014 (diff)
downloadayatana-indicator-application-6a1c35a64e0dba477bd654d682f1e90c95361f78.tar.gz
ayatana-indicator-application-6a1c35a64e0dba477bd654d682f1e90c95361f78.tar.bz2
ayatana-indicator-application-6a1c35a64e0dba477bd654d682f1e90c95361f78.zip
fix crash on null string passed to GVariant
Diffstat (limited to 'src')
-rw-r--r--src/application-service-appstore.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/application-service-appstore.c b/src/application-service-appstore.c
index 10feef5..5f343e5 100644
--- a/src/application-service-appstore.c
+++ b/src/application-service-appstore.c
@@ -1238,9 +1238,10 @@ get_applications (ApplicationServiceAppstore * appstore)
}
g_variant_builder_add (&builder, "(sisossss)", app->icon,
- position++, app->dbus_name, app->menu,
- app->icon_theme_path, app->label,
- app->guide, app->icon_desc);
+ position++, app->dbus_name, app->menu,
+ app->icon_theme_path, app->label,
+ app->guide,
+ (app->icon_desc != NULL) ? app->icon_desc : "");
}
out = g_variant_builder_end(&builder);