diff -NurB libgda-1.0.2-orig/libgda/gda-command.c libgda-1.0.2/libgda/gda-command.c --- libgda-1.0.2-orig/libgda/gda-command.c 2003-12-03 00:46:02.000000000 -0500 +++ libgda-1.0.2/libgda/gda-command.c 2003-12-03 00:47:33.000000000 -0500 @@ -100,8 +100,10 @@ GdaCommand * gda_command_copy (GdaCommand *cmd) { + GdaCommand *new_cmd; + g_return_val_if_fail (cmd != NULL, NULL); - GdaCommand *new_cmd = gda_command_new (gda_command_get_text (cmd), + new_cmd = gda_command_new (gda_command_get_text (cmd), gda_command_get_command_type (cmd), gda_command_get_options (cmd)); gda_command_set_transaction (new_cmd,