copying userData to the atomic method
authorerickson <erickson@9efc2488-bf62-4759-914b-345cdb29e865>
Wed, 24 May 2006 15:12:15 +0000 (15:12 +0000)
committererickson <erickson@9efc2488-bf62-4759-914b-345cdb29e865>
Wed, 24 May 2006 15:12:15 +0000 (15:12 +0000)
git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@729 9efc2488-bf62-4759-914b-345cdb29e865

src/libstack/osrf_application.c

index 5722214..d4b954e 100644 (file)
@@ -122,6 +122,7 @@ int osrfAppRegisterExtendedMethod( char* appName, char* methodName,
                osrfMethod* atomicMethod = _osrfAppBuildMethod(
                        methodName, symbolName, notes, argc, newops, NULL );            
                osrfHashSet( app->methods, atomicMethod, atomicMethod->name );
+               atomicMethod->userData = method->userData;
        }
 
        return 0;
@@ -137,7 +138,7 @@ osrfMethod* _osrfAppBuildMethod( char* methodName,
        if(methodName) method->name             = strdup(methodName);
        if(symbolName) method->symbol           = strdup(symbolName);
        if(notes) method->notes                         = strdup(notes);
-       if(user_data) method->userData                  = user_data;
+       if(user_data) method->userData  = user_data;
 
        method->argc                                                    = argc;
        method->options                                         = options;