rust/gen-c-headers: don't attempt to split empty lines

pull/3487/head
Jason Ish 7 years ago committed by Victor Julien
parent ee3aba9008
commit 90dfcf4907

@ -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()

Loading…
Cancel
Save