diff options
Diffstat (limited to 'gtk')
-rw-r--r-- | gtk/gtk_gui.c | 2 | ||||
-rw-r--r-- | gtk/gtk_window.c | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/gtk/gtk_gui.c b/gtk/gtk_gui.c index 13fd3c570..47a3cfd04 100644 --- a/gtk/gtk_gui.c +++ b/gtk/gtk_gui.c @@ -393,7 +393,7 @@ void warn_user(const char *warning, const char *detail) { char buf[300]; /* 300 is the size the RISC OS GUI uses */ - LOG(("%s %s", warning, detail)); + LOG(("%s %s", warning, detail ? detail : "")); fflush(stdout); snprintf(buf, sizeof(buf), "%s %s", messages_get(warning), diff --git a/gtk/gtk_window.c b/gtk/gtk_window.c index b1ed0f731..317af10a0 100644 --- a/gtk/gtk_window.c +++ b/gtk/gtk_window.c @@ -487,7 +487,8 @@ gboolean nsgtk_window_size_allocate_event(GtkWidget *widget, { struct gui_window *g = data; - LOG(("Size allocate for %s scheduling reflow\n", g->bw->name)); + LOG(("Size allocate for %s scheduling reflow\n", g->bw->name ? + g->bw->name : "(none")); /* schedule a callback to perform the resize for 1/10s from now */ schedule(5, (gtk_callback)(nsgtk_window_reflow_content), g); |