You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by sa...@apache.org on 2006/02/01 05:42:16 UTC

svn commit: r373988 - in /webservices/axis2/trunk/c/samples/server: calculator/ math/math.c

Author: samisa
Date: Tue Jan 31 20:42:11 2006
New Revision: 373988

URL: http://svn.apache.org/viewcvs?rev=373988&view=rev
Log:
Removed the calculator as it is not working. Also fixed the div by zero bug

Removed:
    webservices/axis2/trunk/c/samples/server/calculator/
Modified:
    webservices/axis2/trunk/c/samples/server/math/math.c

Modified: webservices/axis2/trunk/c/samples/server/math/math.c
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/samples/server/math/math.c?rev=373988&r1=373987&r2=373988&view=diff
==============================================================================
--- webservices/axis2/trunk/c/samples/server/math/math.c (original)
+++ webservices/axis2/trunk/c/samples/server/math/math.c Tue Jan 31 20:42:11 2006
@@ -446,6 +446,8 @@
         
         param1 = strtol(param1_str, NULL, 10);
         param2 = strtol(param2_str, NULL, 10);
+        if (param2 == 0)
+            return NULL;
         result = param1 / param2;
         sprintf(result_str, "%ld", result);