aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar DuClare <akarinotengoku@gmail.com>2009-05-16 16:26:36 +0300
committerGravatar DuClare <akarinotengoku@gmail.com>2009-05-16 16:26:36 +0300
commit57665dc053d0b13b1a448628d586aa200c649c67 (patch)
treef1efc35917351036963bdb5df308b41ce3a9d625
parentf760acb6b94bd4acccc98690d388ec22de39ddca (diff)
Give scripts '(null)' instead of '', for consistency
-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);