Skip to content

Commit 352610d

Browse files
committed
C++: Add GOOD annotation
1 parent 2bc035c commit 352610d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cpp/ql/test/query-tests/Security/CWE/CWE-457/semmle/tests/too_many_constants.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,5 +38,5 @@ char *too_many_constants(const char *h, bool k, int i) {
3838

3939
too_many_constants_init(s);
4040

41-
return m;
41+
return m; // GOOD - initialized by too_many_constants_init
4242
}

0 commit comments

Comments
 (0)