aboutsummaryrefslogtreecommitdiff
path: root/src/application-service-appstore.c
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2011-03-02 15:45:07 -0600
committerTed Gould <ted@gould.cx>2011-03-02 15:45:07 -0600
commit7b316782e0acd1ef0e91f41feca4ddb9c4ac5c4f (patch)
treedbb696bbdd5b7700f5932e63238387cb7335c1cf /src/application-service-appstore.c
parent63807a063a5545df5b6dc5ea51e8d3dc895eb014 (diff)
parent6a1c35a64e0dba477bd654d682f1e90c95361f78 (diff)
downloadayatana-indicator-application-7b316782e0acd1ef0e91f41feca4ddb9c4ac5c4f.tar.gz
ayatana-indicator-application-7b316782e0acd1ef0e91f41feca4ddb9c4ac5c4f.tar.bz2
ayatana-indicator-application-7b316782e0acd1ef0e91f41feca4ddb9c4ac5c4f.zip
Protect from the accessible description being NULL
Diffstat (limited to 'src/application-service-appstore.c')
-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);