trafficserver-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bc...@apache.org
Subject svn commit: r936014 - /incubator/trafficserver/traffic/trunk/proxy/mgmt2/tools/SysAPI.cc
Date Tue, 20 Apr 2010 17:57:23 GMT
Author: bcall
Date: Tue Apr 20 17:57:23 2010
New Revision: 936014

URL: http://svn.apache.org/viewvc?rev=936014&view=rev
Log:
TS-319 Fixed gcc warning about passing NULL as the second argument to execv

Modified:
    incubator/trafficserver/traffic/trunk/proxy/mgmt2/tools/SysAPI.cc

Modified: incubator/trafficserver/traffic/trunk/proxy/mgmt2/tools/SysAPI.cc
URL: http://svn.apache.org/viewvc/incubator/trafficserver/traffic/trunk/proxy/mgmt2/tools/SysAPI.cc?rev=936014&r1=936013&r2=936014&view=diff
==============================================================================
--- incubator/trafficserver/traffic/trunk/proxy/mgmt2/tools/SysAPI.cc (original)
+++ incubator/trafficserver/traffic/trunk/proxy/mgmt2/tools/SysAPI.cc Tue Apr 20 17:57:23
2010
@@ -1721,7 +1721,8 @@ Net_SNMPSetUp(char *sys_location, char *
     snprintf(command_path, sizeof(command_path), "%s/bin/stop_snmp && %s/bin/start_snmp",
ts_path, ts_path);
 
     sleep(30);
-    res = execv(command_path, NULL);
+    char *argv[] = { NULL };
+    res = execv(command_path, argv);
 
     if (res != 0) {
       DPRINTF(("[SysAPI] failed to execute stop_snmp && start_snmp\n"));



Mime
View raw message