[GRASS-SVN] r34439 - grass/trunk/db/drivers/mysql

svn_grass at osgeo.org svn_grass at osgeo.org
Fri Nov 21 18:39:55 EST 2008


Author: glynn
Date: 2008-11-21 18:39:55 -0500 (Fri, 21 Nov 2008)
New Revision: 34439

Modified:
   grass/trunk/db/drivers/mysql/dbe.c
Log:
Don't modify constant strings


Modified: grass/trunk/db/drivers/mysql/dbe.c
===================================================================
--- grass/trunk/db/drivers/mysql/dbe.c	2008-11-21 23:37:34 UTC (rev 34438)
+++ grass/trunk/db/drivers/mysql/dbe.c	2008-11-21 23:39:55 UTC (rev 34439)
@@ -27,7 +27,7 @@
 
     init_error();
     db_get_connection(&default_connection);
-    name = db_get_handle_dbname(handle);
+    name = G_store(db_get_handle_dbname(handle));
 
     /* if name is empty use default_connection.databaseName */
     if (strlen(name) == 0)



More information about the grass-commit mailing list