Skip to content

Commit a418ba7

Browse files
committed
REP: If length argument is None, let that stay so json does the right thing
We were converting it to a string with becomes 'None' which then throws off the json parser
1 parent 7022b47 commit a418ba7

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

chb/buffer/LibraryCallCallsites.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,10 @@ def to_json_result(self) -> JSONResult:
266266
content["buffersize"] = buffersize
267267
content["target-function"] = self.summary.name
268268
content["stack-offset"] = dstoffset
269-
content["length-argument"] = str(self.lenarg)
269+
if self.lenarg is not None:
270+
content["length-argument"] = str(self.lenarg)
271+
else:
272+
content["length-argument"] = None
270273

271274
return JSONResult("librarycallsideeffect", content, "ok")
272275

0 commit comments

Comments
 (0)