Skip to content

Commit d41268f

Browse files
committed
Go/UnhandledCloseWritableHandle
1 parent ec63547 commit d41268f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

go/ql/src/InconsistentCode/UnhandledCloseWritableHandle.ql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ module UnhandledFileCloseConfig implements DataFlow::ConfigSig {
132132
predicate observeDiffInformedIncrementalMode() { any() }
133133

134134
Location getASelectedSourceLocation(DataFlow::Node source) {
135-
exists(DataFlow::CallNode openCall | result = openCall.getLocation() |
135+
exists(DataFlow::CallNode openCall | result = [openCall.getLocation(), source.getLocation()] |
136136
isWritableFileHandle(source, openCall)
137137
)
138138
}

0 commit comments

Comments
 (0)