trafficserver-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From geor...@apache.org
Subject svn commit: r910062 - /incubator/trafficserver/traffic/branches/dev/proxy/mgmt2/cop/TrafficCop.cc
Date Sun, 14 Feb 2010 18:57:41 GMT
Author: georgep
Date: Sun Feb 14 18:57:41 2010
New Revision: 910062

URL: http://svn.apache.org/viewvc?rev=910062&view=rev
Log:
TS-11: Missed minor fix from last merge from trunk on OpenSolaris.

Modified:
    incubator/trafficserver/traffic/branches/dev/proxy/mgmt2/cop/TrafficCop.cc

Modified: incubator/trafficserver/traffic/branches/dev/proxy/mgmt2/cop/TrafficCop.cc
URL: http://svn.apache.org/viewvc/incubator/trafficserver/traffic/branches/dev/proxy/mgmt2/cop/TrafficCop.cc?rev=910062&r1=910061&r2=910062&view=diff
==============================================================================
--- incubator/trafficserver/traffic/branches/dev/proxy/mgmt2/cop/TrafficCop.cc (original)
+++ incubator/trafficserver/traffic/branches/dev/proxy/mgmt2/cop/TrafficCop.cc Sun Feb 14
18:57:41 2010
@@ -892,8 +892,10 @@
   i = 1;
   tok = ink_strtok_r(manager_options, " ", &last);
   options[i++] = tok;
-  while (i < OPTIONS_MAX && (tok = ink_strtok_r(NULL, " ", &last))) {
-    options[i++] = tok;
+  if (tok != NULL) {
+    while (i < OPTIONS_MAX && (tok = ink_strtok_r(NULL, " ", &last))) {
+      options[i++] = tok;
+    }
   }
 
   // coverity[fs_check_call]



Mime
View raw message