Skip to content

Commit 0998b1e

Browse files
committed
DiskIO (Linux): trim trailing white spaces
1 parent 588c4c0 commit 0998b1e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/detection/diskio/diskio_linux.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ static const char* parseDiskIOCounters(int dfd, const char* devName, FFlist* res
2323
ffStrbufAppendC(&name, ' ');
2424
}
2525

26-
if (ffAppendFileBufferRelative(devfd, "model", &name))
27-
ffStrbufTrimRightSpace(&name);
26+
ffAppendFileBufferRelative(devfd, "model", &name);
27+
ffStrbufTrimRightSpace(&name);
2828

2929
if (name.length == 0)
3030
ffStrbufSetS(&name, devName);

0 commit comments

Comments
 (0)