[Greater-commits] r238 - trunk/Administration
scm-commit@wald.intevation.org
scm-commit at wald.intevation.org
Wed Jun 22 13:13:35 CEST 2011
Author: bricks
Date: 2011-06-22 13:13:33 +0200 (Wed, 22 Jun 2011)
New Revision: 238
Modified:
trunk/Administration/PanelSession.cpp
trunk/Administration/PanelSubstance.cpp
Log:
Fix using unititialized char pointer
Modified: trunk/Administration/PanelSession.cpp
===================================================================
--- trunk/Administration/PanelSession.cpp 2011-06-22 10:41:41 UTC (rev 237)
+++ trunk/Administration/PanelSession.cpp 2011-06-22 11:13:33 UTC (rev 238)
@@ -318,13 +318,12 @@
// Strings must be passed as C-string to API
long sessid = -1;
- char* isTempl;
- *isTempl = '%';
+ char isTempl = '%';
ClearSessionGrid();
// get session data from database
- if (!da_get_sess(sessid, *isTempl, &p_sess, &errinfo))
+ if (!da_get_sess(sessid, isTempl, &p_sess, &errinfo))
{
//Show error
((MainWindow*) GetGrandParent())->OnError(wxT("Reload failed"), &errinfo);
Modified: trunk/Administration/PanelSubstance.cpp
===================================================================
--- trunk/Administration/PanelSubstance.cpp 2011-06-22 10:41:41 UTC (rev 237)
+++ trunk/Administration/PanelSubstance.cpp 2011-06-22 11:13:33 UTC (rev 238)
@@ -309,12 +309,11 @@
// Strings must be passed as C-string to API
long substid = -1;
- char* isTempl;
- *isTempl = '%';
+ char isTempl = '%';
ClearSubstanceGrid();
// get substance data from database
- if (!da_get_subst(substid, *isTempl, &p_subst, &errinfo))
+ if (!da_get_subst(substid, isTempl, &p_subst, &errinfo))
{
//Show error
((MainWindow*) GetGrandParent())->OnError(wxT("Reload failed"), &errinfo);
More information about the Greater-commits
mailing list