Browse Source

Don't modify constant strings

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@34439 15284696-431f-4ddb-bdfa-cd5b030d7da7
Glynn Clements 16 years ago
parent
commit
9e35c47c22
1 changed files with 1 additions and 1 deletions
  1. 1 1
      db/drivers/mysql/dbe.c

+ 1 - 1
db/drivers/mysql/dbe.c

@@ -27,7 +27,7 @@ int db__driver_open_database(dbHandle * handle)
 
     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)