Skip to content

Commit 0d532d0

Browse files
committed
Go/UnhandledCloseWritableHandle
1 parent 2c2fe92 commit 0d532d0

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)