summaryrefslogtreecommitdiffstats
path: root/linux.c
diff options
context:
space:
mode:
Diffstat (limited to 'linux.c')
-rw-r--r--linux.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/linux.c b/linux.c
index 4e7e61c7c..f60f9179c 100644
--- a/linux.c
+++ b/linux.c
@@ -88,7 +88,7 @@ void subsurface_ui_setup(GtkSettings *settings, GtkWidget *menubar,
GtkWidget *vbox, GtkUIManager *ui_manager)
{
if (!divelist_font)
- divelist_font = DIVELIST_DEFAULT_FONT;
+ divelist_font = strdup(DIVELIST_DEFAULT_FONT);
gtk_box_pack_start(GTK_BOX(vbox), menubar, FALSE, FALSE, 0);
}