axis-c-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From billblo...@apache.org
Subject [axis-axis2-c-core] 13/14: initialized log_file_size variable to remove warning
Date Sat, 04 Apr 2020 15:07:45 GMT
This is an automated email from the ASF dual-hosted git repository.

billblough pushed a commit to branch 29092007
in repository https://gitbox.apache.org/repos/asf/axis-axis2-c-core.git

commit b578264d58363b8d5eaf0d473c36a2943b770b02
Author: Damitha N.M. Kumarage <damitha@apache.org>
AuthorDate: Fri Oct 26 07:02:43 2007 +0000

    initialized log_file_size variable to remove warning
---
 .../transport/http/server/simple_axis2_server/http_server_main.c     | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/src/core/transport/http/server/simple_axis2_server/http_server_main.c b/src/core/transport/http/server/simple_axis2_server/http_server_main.c
index bbc0277..be0b9a4 100644
--- a/src/core/transport/http/server/simple_axis2_server/http_server_main.c
+++ b/src/core/transport/http/server/simple_axis2_server/http_server_main.c
@@ -100,7 +100,7 @@ main(
     extern char *optarg;
     extern int optopt;
     int c;
-    int log_file_size;
+    int log_file_size = 0;
     axutil_log_levels_t log_level = AXIS2_LOG_LEVEL_DEBUG;
     const axis2_char_t *log_file = "axis2.log";
     int port = 9090;
@@ -161,7 +161,8 @@ main(
 
     env = init_syetem_env(allocator, log_file);
     env->log->level = log_level;
-    env->log->size = 1024 * 1024 * log_file_size;
+    if(log_file_size > 0)
+        env->log->size = 1024 * 1024 * log_file_size;
 
     axutil_error_init();
     system_env = env;


Mime
View raw message