Skip to content

Commit

Permalink
final fix for no dbname bug
Browse files Browse the repository at this point in the history
  • Loading branch information
sarthak committed Mar 22, 2016
1 parent e1482ca commit 417f4ed
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
3 changes: 1 addition & 2 deletions gdal/frmts/postgisraster/postgisrasterdataset.cpp
Expand Up @@ -2534,8 +2534,7 @@ GetConnectionInfo(const char * pszFilename,
}
else{
*ppszDbname =
CPLStrdup(CPLParseNameValue(papszParams[nPos], NULL));

CPLStrdup(CPLParseNameValue(papszParams[nPos], NULL));
}

/**
Expand Down
1 change: 1 addition & 0 deletions gdal/frmts/postgisraster/postgisrasterdriver.cpp
Expand Up @@ -75,6 +75,7 @@ PGconn* PostGISRasterDriver::GetConnection(const char* pszConnectionString,
if( pszHostIn == NULL ) pszHostIn = "(null)";
if( pszPortIn == NULL ) pszPortIn = "(null)";
if( pszUserIn == NULL ) pszUserIn = "(null)";
if( pszDbnameIn == NULL) pszDbnameIn = "(null)";
CPLString osKey = pszDbnameIn;
osKey += "-";
osKey += pszHostIn;
Expand Down

0 comments on commit 417f4ed

Please sign in to comment.