You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficserver.apache.org by zw...@apache.org on 2011/12/30 03:19:19 UTC
svn commit: r1225724 - /trafficserver/traffic/trunk/cop/TrafficCop.cc
Author: zwoop
Date: Fri Dec 30 02:19:19 2011
New Revision: 1225724
URL: http://svn.apache.org/viewvc?rev=1225724&view=rev
Log:
TS-1065 traffic_cop segment fault when enable TRACE_LOG_COP
Author: Conan Wang
Review: Leif
Modified:
trafficserver/traffic/trunk/cop/TrafficCop.cc
Modified: trafficserver/traffic/trunk/cop/TrafficCop.cc
URL: http://svn.apache.org/viewvc/trafficserver/traffic/trunk/cop/TrafficCop.cc?rev=1225724&r1=1225723&r2=1225724&view=diff
==============================================================================
--- trafficserver/traffic/trunk/cop/TrafficCop.cc (original)
+++ trafficserver/traffic/trunk/cop/TrafficCop.cc Fri Dec 30 02:19:19 2011
@@ -164,8 +164,13 @@ cop_log(int priority, const char *format
break;
}
- vfprintf(trace_file, format, args);
+ va_list args_tmp;
+ va_copy(args_tmp, args);
+
+ vfprintf(trace_file, format, args_tmp);
fflush(trace_file);
+
+ va_end(args_tmp);
}
#endif