[Greater-commits] r205 - trunk/Administration
scm-commit@wald.intevation.org
scm-commit at wald.intevation.org
Wed Jun 15 11:50:38 CEST 2011
Author: aheinecke
Date: 2011-06-15 11:50:38 +0200 (Wed, 15 Jun 2011)
New Revision: 205
Modified:
trunk/Administration/PanelBackgrd.cpp
Log:
Initialize values of API pointers.
This fixes a crash when no background was found and thus not
all api functions were called to set the api objects.
Modified: trunk/Administration/PanelBackgrd.cpp
===================================================================
--- trunk/Administration/PanelBackgrd.cpp 2011-06-15 09:39:28 UTC (rev 204)
+++ trunk/Administration/PanelBackgrd.cpp 2011-06-15 09:50:38 UTC (rev 205)
@@ -344,9 +344,9 @@
{
// Strings must be passed as C-string to API
- DA_T_backgrd* p_backgrd;
- DA_T_catch* p_catch;
- DA_T_bin_obj* p_binobj;
+ DA_T_backgrd* p_backgrd = NULL;
+ DA_T_catch* p_catch = NULL;
+ DA_T_bin_obj* p_binobj = NULL;
long backgrdid = -1;
long objectid=-1;
char object_type[15] = {"BACKGROUND"};
More information about the Greater-commits
mailing list