[Xfce4-commits] r25252 - squeeze/trunk/libsqueeze

Stephan Arts stephan at xfce.org
Wed Mar 21 23:17:49 CET 2007


Author: stephan
Date: 2007-03-21 22:17:49 +0000 (Wed, 21 Mar 2007)
New Revision: 25252

Modified:
   squeeze/trunk/libsqueeze/spawn-command.c
Log:
fixed spawn command

Modified: squeeze/trunk/libsqueeze/spawn-command.c
===================================================================
--- squeeze/trunk/libsqueeze/spawn-command.c	2007-03-21 21:50:21 UTC (rev 25251)
+++ squeeze/trunk/libsqueeze/spawn-command.c	2007-03-21 22:17:49 UTC (rev 25252)
@@ -161,11 +161,15 @@
 
 	archive_command = g_object_new(lsq_spawn_command_get_type(), NULL);
 
+	if(!files)
+		files = "";
+	if(!options)
+		options = "";
+
 	LSQ_SPAWN_COMMAND(archive_command)->command = g_strdup(command);
-	if(files)
-		LSQ_SPAWN_COMMAND(archive_command)->files = g_strdup(files);
-	if(options)
-		LSQ_SPAWN_COMMAND(archive_command)->options = g_strdup(options);
+	LSQ_SPAWN_COMMAND(archive_command)->files = g_strdup(files);
+	LSQ_SPAWN_COMMAND(archive_command)->options = g_strdup(options);
+
 	if(archive_path)
 		LSQ_SPAWN_COMMAND(archive_command)->archive_path = g_strdup(archive_path);
 	else
@@ -210,6 +214,8 @@
 	}
 	LSQ_ARCHIVE_COMMAND(command)->running = TRUE;
 
+	g_debug("executing: %s\n", cmd);
+
 	g_child_watch_add(spawn_command->child_pid, lsq_spawn_command_child_watch_func, spawn_command);
 	g_object_ref(spawn_command);
 



More information about the Xfce4-commits mailing list