[Openvas-commits] r5834 - in trunk/openvas-manager: . src

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Tue Nov 10 11:41:43 CET 2009


Author: mattm
Date: 2009-11-10 11:41:40 +0100 (Tue, 10 Nov 2009)
New Revision: 5834

Modified:
   trunk/openvas-manager/ChangeLog
   trunk/openvas-manager/src/tasks_sql.h
Log:
	* src/tasks_sql.h (manage_db_version): Check version instead of number.

Modified: trunk/openvas-manager/ChangeLog
===================================================================
--- trunk/openvas-manager/ChangeLog	2009-11-10 10:07:57 UTC (rev 5833)
+++ trunk/openvas-manager/ChangeLog	2009-11-10 10:41:40 UTC (rev 5834)
@@ -1,5 +1,9 @@
-2009-11-10    Felix Wolfsteller <felix.wolfsteller at intevation.de>
+2009-11-10  Matthew Mundell <matthew.mundell at intevation.de>
 
+	* src/tasks_sql.h (manage_db_version): Check version instead of number.
+
+2009-11-10  Felix Wolfsteller <felix.wolfsteller at intevation.de>
+
 	Improved pdf reports. Text of issues like "security warning" is printed
 	verbatim. To allow for page breaks in issue tables, put one verbatim
 	line into one row of the table. Break lines at 80 characters and do

Modified: trunk/openvas-manager/src/tasks_sql.h
===================================================================
--- trunk/openvas-manager/src/tasks_sql.h	2009-11-10 10:07:57 UTC (rev 5833)
+++ trunk/openvas-manager/src/tasks_sql.h	2009-11-10 10:41:40 UTC (rev 5834)
@@ -592,7 +592,7 @@
   char *version = sql_string (0, 0,
                               "SELECT value FROM meta"
                               " WHERE name = 'database_version' LIMIT 1;");
-  if (number)
+  if (version)
     {
       number = atoi (version);
       free (version);



More information about the Openvas-commits mailing list