initializing some vars so gcc will stop warning
authorerickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Fri, 25 Jul 2008 15:03:28 +0000 (15:03 +0000)
committererickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Fri, 25 Jul 2008 15:03:28 +0000 (15:03 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@10129 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/src/c-apps/oils_dataloader.c
Open-ILS/src/c-apps/oils_idl-core.c
Open-ILS/src/extras/oils_requestor.c

index a071963..c806b2e 100644 (file)
@@ -64,7 +64,7 @@ int main (int argc, char **argv) {
        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);
index bf6c9af..9e45203 100644 (file)
@@ -79,7 +79,7 @@ osrfHash* oilsIDLInit( const char* idl_filename ) {
                                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 @@ osrfHash* oilsIDLInit( const char* idl_filename ) {
                                                        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));
                                                
index 3290450..ad052e4 100644 (file)
@@ -95,7 +95,7 @@ static int do_request( char* request ) {
 
        const char* service;
        const char* method;
-       char* tmp;
+       char* tmp = NULL;
        
        service = strtok_r(request, " ", &tmp);
        method = strtok_r(NULL, " ", &tmp);