Skip to content

Commit 8f6e56c

Browse files
committed
C++: Suggested change.
1 parent d259e8e commit 8f6e56c

File tree

1 file changed

+1
-1
lines changed
  • cpp/ql/src/semmle/code/cpp/models/implementations

1 file changed

+1
-1
lines changed

cpp/ql/src/semmle/code/cpp/models/implementations/Strcat.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ class StrcatFunction extends TaintFunction, DataFlowFunction, ArrayFunction, Sid
2727
/**
2828
* Gets the index of the parameter that is the size of the copy (in characters).
2929
*/
30-
int getParamSize() { if exists(getParameter(2)) then result = 2 else none() }
30+
int getParamSize() { exists(getParameter(2)) and result = 2 }
3131

3232
/**
3333
* Gets the index of the parameter that is the source of the copy.

0 commit comments

Comments
 (0)