Browse Source

dbmilib: fix get_login() initialize also host and port

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@65332 15284696-431f-4ddb-bdfa-cd5b030d7da7
Martin Landa 10 years ago
parent
commit
640a61b8a4
1 changed files with 3 additions and 1 deletions
  1. 3 1
      lib/db/dbmi_base/login.c

+ 3 - 1
lib/db/dbmi_base/login.c

@@ -289,7 +289,9 @@ static int get_login(const char *driver, const char *database, const char **user
 
     user[0] = '\0';
     password[0] = '\0';
-
+    host[0] = '\0';
+    port[0] = '\0';
+    
     init_login(&login);
 
     if (read_file(&login) == -1)