diff options
-rw-r--r-- | info.c | 2 | ||||
-rw-r--r-- | profile.c | 2 |
2 files changed, 3 insertions, 1 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); } @@ -504,7 +504,7 @@ static void plot_info(struct dive *dive, struct graphics_context *gc) airuse = calculate_airuse(dive); if (!airuse) { - update_air_info(" \n "); + update_air_info(NULL); return; } switch (output_units.volume) { |