diff --git a/python/ql/lib/semmle/python/dataflow/new/internal/DataFlowPrivate.qll b/python/ql/lib/semmle/python/dataflow/new/internal/DataFlowPrivate.qll index 2b2b22ed3ce..cac72c97e9a 100644 --- a/python/ql/lib/semmle/python/dataflow/new/internal/DataFlowPrivate.qll +++ b/python/ql/lib/semmle/python/dataflow/new/internal/DataFlowPrivate.qll @@ -708,8 +708,8 @@ predicate dictStoreStep(CfgNode nodeFrom, DictionaryElementContent c, Node nodeT or // see https://docs.python.org/3.10/library/stdtypes.html#dict.setdefault exists(MethodCallNode call | - call.calls(nodeTo.(PostUpdateNode).getPreUpdateNode(), ["setdefault"]) and - call.getArg(0).asExpr().(StrConst).getText() = c.(DictionaryElementContent).getKey() and + call.calls(nodeTo.(PostUpdateNode).getPreUpdateNode(), "setdefault") and + call.getArg(0).asExpr().(StrConst).getText() = c.getKey() and nodeFrom = call.getArg(1) ) }