[Openvas-commits] r5580 - in trunk/openvas-client: . src

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Fri Oct 16 15:32:54 CEST 2009


Author: mattm
Date: 2009-10-16 15:32:54 +0200 (Fri, 16 Oct 2009)
New Revision: 5580

Modified:
   trunk/openvas-client/ChangeLog
   trunk/openvas-client/src/omp-cli.c
Log:
	* src/omp-cli.c (main): Compare cmd_xml to NULL in single command check,
	as it is a string.

Modified: trunk/openvas-client/ChangeLog
===================================================================
--- trunk/openvas-client/ChangeLog	2009-10-16 13:02:29 UTC (rev 5579)
+++ trunk/openvas-client/ChangeLog	2009-10-16 13:32:54 UTC (rev 5580)
@@ -1,5 +1,10 @@
 2009-10-16  Matthew Mundell <matthew.mundell at intevation.de>
 
+	* src/omp-cli.c (main): Compare cmd_xml to NULL in single command check,
+	as it is a string.
+
+2009-10-16  Matthew Mundell <matthew.mundell at intevation.de>
+
 	* src/omp-cli.c (main): Rename status to exit_status, as it was shadowed.
 
 2009-10-16  Felix Wolfsteller <felix.wolfsteller at intevation.de>

Modified: trunk/openvas-client/src/omp-cli.c
===================================================================
--- trunk/openvas-client/src/omp-cli.c	2009-10-16 13:02:29 UTC (rev 5579)
+++ trunk/openvas-client/src/omp-cli.c	2009-10-16 13:32:54 UTC (rev 5580)
@@ -436,7 +436,7 @@
                + (int) cmd_get_status
                + (int) cmd_modify_task
                + (int) cmd_start_task
-               + (int) cmd_xml;
+               + (int) (cmd_xml != NULL);
     if (commands == 0)
       {
         fprintf (stderr, "One command option must be present.\n");



More information about the Openvas-commits mailing list