Test results depended on unitialized variable.
authorFrantišek Dvořák <valtri@civ.zcu.cz>
Sun, 13 Mar 2011 01:03:03 +0000 (01:03 +0000)
committerFrantišek Dvořák <valtri@civ.zcu.cz>
Sun, 13 Mar 2011 01:03:03 +0000 (01:03 +0000)
org.glite.lbjp-common.gsoap-plugin/test/test_gsplugin_cxx.cpp

index 27593ae..d960694 100644 (file)
@@ -25,7 +25,7 @@ limitations under the License.
 int main() {
        struct soap *mydlo = NULL;
        glite_gsplugin_Context gsplugin_ctx = NULL;
-       int ok1, ok2;
+       int ok1;
 
        // test 1 - stdsoap2.c compatibility
        if ((mydlo = soap_new()) == NULL) {
@@ -52,7 +52,7 @@ int main() {
        soap_done(mydlo);
        free(mydlo);
        glite_gsplugin_free_context(gsplugin_ctx);
-       return ok1 && ok2;
+       return ok1;
 
 err:
        if (gsplugin_ctx) glite_gsplugin_free_context(gsplugin_ctx);