Skip to content

Commit 73d6177

Browse files
author
Sauyon Lee
committed
Java test gen: make char zero '\0'
1 parent 2b0f6a2 commit 73d6177

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

java/ql/src/utils/FlowTestCaseUtils.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ string getZero(PrimitiveType t) {
5151
or
5252
t.hasName("byte") and result = "(byte)0"
5353
or
54-
t.hasName("char") and result = "'a'"
54+
t.hasName("char") and result = "'\\0'"
5555
or
5656
t.hasName("long") and result = "0L"
5757
}

0 commit comments

Comments
 (0)