about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/common.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common.c b/src/common.c
index 3a1b9cc4..be010d8d 100644
--- a/src/common.c
+++ b/src/common.c
@@ -465,7 +465,7 @@ call_external(gchar** argv, gchar** std_out, gchar** std_err)
     if (!spawn_result
         || !g_spawn_check_exit_status(exit_status, &spawn_error)) {
         gchar* cmd = g_strjoinv(" ", argv);
-        log_error("Spawning '%s' failed with '%s'.", cmd, spawn_error->message);
+        log_error("Spawning '%s' failed with '%s'.", cmd, (spawn_error && spawn_error->message) ? spawn_error->message : "No error given");
         g_free(cmd);
         g_error_free(spawn_error);
     }