aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--uzbl.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/uzbl.c b/uzbl.c
index 4140900..d7d2baa 100644
--- a/uzbl.c
+++ b/uzbl.c
@@ -711,8 +711,9 @@ run_command (const char *command, const char *args, const gboolean sync, char **
GString* to_execute = g_string_new ("");
gboolean result;
g_string_printf (to_execute, "%s '%s' '%i' '%i' '%s' '%s'",
- command, uzbl.state.config_file, (int) getpid() ,
- (int) uzbl.xwin, uzbl.comm.fifo_path, uzbl.comm.socket_path);
+ command, (uzbl.state.config_file ? uzbl.state.config_file : "(null)"),
+ (int) getpid(), (int) uzbl.xwin, uzbl.comm.fifo_path,
+ uzbl.comm.socket_path);
g_string_append_printf (to_execute, " '%s' '%s'",
uzbl.state.uri, "TODO title here");
if(args) g_string_append_printf (to_execute, " %s", args);