Details
-
Task
-
Status: Resolved
-
Trivial
-
Resolution: Fixed
-
None
-
None
-
axis2c-bin-1.5.0-win32
Description
The following excerpt was taken from the online hello.c example html:
http://ws.apache.org/axis2/c/docs/hello/client/hello.c.html
client_home = AXIS2_GETENV("AXIS2C_HOME");
if (!client_home && !strcmp(client_home, ""))
client_home = "../..";
The test should be an OR statement instead of an AND statement. Not necessary, but also simplified by removing strcmp:
client_home = AXIS2_GETENV("AXIS2C_HOME");
if (!client_home || !(*client_home))
client_home = "../..";