summaryrefslogtreecommitdiffstats
path: root/info.c
diff options
context:
space:
mode:
Diffstat (limited to 'info.c')
-rw-r--r--info.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/info.c b/info.c
index 5cfe7286c..6834b1645 100644
--- a/info.c
+++ b/info.c
@@ -197,6 +197,8 @@ void update_air_info(char *buffer)
{
char markup[120];
+ if (! buffer)
+ buffer = EMPTY_AIRCONSUMPTION;
snprintf(markup, sizeof(markup), "<span font=\"8\">%s</span>",buffer);
gtk_label_set_markup(GTK_LABEL(airconsumption), markup);
}