]> sourceware.org Git - systemtap.git/commitdiff
Correct argument number off by one error
authorLukas Berk <lberk@redhat.com>
Tue, 30 Apr 2013 21:41:08 +0000 (17:41 -0400)
committerLukas Berk <lberk@redhat.com>
Wed, 1 May 2013 15:13:38 +0000 (11:13 -0400)
*tapset-method.cxx: increment method_params_count even if it wasn't 0

tapset-method.cxx

index f5cbbe2203c4419835a0ba0f9c577d5452ac32fa..9f02990a43afb42c1d882db19497c6b9111f21fc 100644 (file)
@@ -205,7 +205,7 @@ java_builder::build (systemtap_session & sess,
   //need to count the number of parameters, exit if more than 10
 
   int method_params_count = count (method_str_val.begin (), method_str_val.end (), ',');
-  if (one_arg && method_params_count == 0)
+  if (one_arg)
     method_params_count++; // in this case we know there was at least a var, but no ','
 
   if (method_params_count > 10)
This page took 0.027418 seconds and 5 git commands to generate.