[open-ils-commits] r10129 - in trunk/Open-ILS/src: c-apps extras
svn at svn.open-ils.org
svn at svn.open-ils.org
Fri Jul 25 11:03:35 EDT 2008
Author: erickson
Date: 2008-07-25 11:03:28 -0400 (Fri, 25 Jul 2008)
New Revision: 10129
Modified:
trunk/Open-ILS/src/c-apps/oils_dataloader.c
trunk/Open-ILS/src/c-apps/oils_idl-core.c
trunk/Open-ILS/src/extras/oils_requestor.c
Log:
initializing some vars so gcc will stop warning
Modified: trunk/Open-ILS/src/c-apps/oils_dataloader.c
===================================================================
--- trunk/Open-ILS/src/c-apps/oils_dataloader.c 2008-07-25 14:55:26 UTC (rev 10128)
+++ trunk/Open-ILS/src/c-apps/oils_dataloader.c 2008-07-25 15:03:28 UTC (rev 10129)
@@ -64,7 +64,7 @@
osrfStringArray* classes = osrfHashKeys(idl);
int c_index = 0;
char* classname;
- char* st_tmp;
+ char* st_tmp = NULL;
while ((classname = osrfStringArrayGetString(classes, c_index++))) {
osrfHash* idlClass = oilsIDLFindPath("/%s", classname);
Modified: trunk/Open-ILS/src/c-apps/oils_idl-core.c
===================================================================
--- trunk/Open-ILS/src/c-apps/oils_idl-core.c 2008-07-25 14:55:26 UTC (rev 10128)
+++ trunk/Open-ILS/src/c-apps/oils_idl-core.c 2008-07-25 15:03:28 UTC (rev 10129)
@@ -79,7 +79,7 @@
osrfLogDebug(OSRF_LOG_MARK, "Controller list is %s", string_tmp );
if (strlen( controller_list ) > 0) {
- char* st_tmp;
+ char* st_tmp = NULL;
char* _controller_class = strtok_r(controller_list, " ", &st_tmp);
osrfStringArrayAdd(controller, strdup(_controller_class));
@@ -238,7 +238,7 @@
osrfLogDebug(OSRF_LOG_MARK, "Link mapping list is %s", string_tmp );
if (strlen( map_list ) > 0) {
- char* st_tmp;
+ char* st_tmp = NULL;
char* _map_class = strtok_r(map_list, " ", &st_tmp);
osrfStringArrayAdd(map, strdup(_map_class));
Modified: trunk/Open-ILS/src/extras/oils_requestor.c
===================================================================
--- trunk/Open-ILS/src/extras/oils_requestor.c 2008-07-25 14:55:26 UTC (rev 10128)
+++ trunk/Open-ILS/src/extras/oils_requestor.c 2008-07-25 15:03:28 UTC (rev 10129)
@@ -95,7 +95,7 @@
const char* service;
const char* method;
- char* tmp;
+ char* tmp = NULL;
service = strtok_r(request, " ", &tmp);
method = strtok_r(NULL, " ", &tmp);
More information about the open-ils-commits
mailing list