From: Jason Ish Date: Thu, 30 Aug 2018 18:55:33 +0000 (-0600) Subject: rust/gen-c-headers: don't attempt to split empty lines X-Git-Tag: suricata-4.1.0-rc2~43 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=90dfcf490729494da989d259666fb76a781ea1bd;p=thirdparty%2Fsuricata.git rust/gen-c-headers: don't attempt to split empty lines --- diff --git a/rust/gen-c-headers.py b/rust/gen-c-headers.py index 3a965b0386..2d678549ad 100755 --- a/rust/gen-c-headers.py +++ b/rust/gen-c-headers.py @@ -183,7 +183,7 @@ def gen_headers(filename): fnName = fn[1] for arg in fn[2].split(","): - if not arg: + if not arg.strip(): continue arg_name, rs_type = arg.split(":", 1) arg_name = arg_name.strip()