From 6911229278cda9b59c1ef808c3b2bed7aff64336 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Fri, 16 Sep 2011 20:20:28 -0700 Subject: Make handling of empty airconsumption string consistent Signed-off-by: Dirk Hohndel --- info.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'info.c') 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), "%s",buffer); gtk_label_set_markup(GTK_LABEL(airconsumption), markup); } -- cgit v1.2.3-70-g09d2