Skip to content

Commit 5c5317e

Browse files
committed
filter empty paths from OpenHandles
1 parent 799d779 commit 5c5317e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

providers/freebsd/process_freebsd_cgo.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -327,7 +327,9 @@ func (p *process) OpenHandles() ([]string, error) {
327327

328328
for _, file := range files {
329329
if file.fs_type == 1 {
330-
names = append(names, C.GoString(file.fs_path))
330+
if path := C.GoString(file.fs_path); path != "" {
331+
names = append(names, path)
332+
}
331333
}
332334
}
333335

0 commit comments

Comments
 (0)