diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2011-09-16 20:20:28 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2011-09-16 20:20:28 -0700 |
commit | 6911229278cda9b59c1ef808c3b2bed7aff64336 (patch) | |
tree | f6731981ce02a91d15772d31ad02aad9e47c406a /info.c | |
parent | 4564d67953af9bfa8086c457b26e3b66f1c2718d (diff) | |
download | subsurface-6911229278cda9b59c1ef808c3b2bed7aff64336.tar.gz |
Make handling of empty airconsumption string consistent
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'info.c')
-rw-r--r-- | info.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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); } |