Skip to content

Commit a118ee8

Browse files
authored
Update workshop.md
Fix another related bug in `isSource`.
1 parent ed39cf5 commit a118ee8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

workshop.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -161,8 +161,8 @@ Each step has a **Solution** that indicates one possible answer. Note that all q
161161
```ql
162162
predicate isSource(Expr arg) {
163163
exists(FunctionCall call |
164-
arg = call.getArgument(0)) and
165-
call.hasGlobalOrStdName("free")
164+
arg = call.getArgument(0) and
165+
call.getTarget().hasGlobalOrStdName("free")
166166
)
167167
}
168168
```

0 commit comments

Comments
 (0)