1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2026-06-08 00:44:48 -04:00

PVS-Studio static analysis corrections (3) issue #137

This commit is contained in:
f4exb
2018-02-24 10:29:27 +01:00
parent 9c3986ecbb
commit 2e5cfcafee
52 changed files with 187 additions and 229 deletions
+1 -1
View File
@@ -150,7 +150,7 @@ void DVSerialEngine::getComList()
const char* sysdir = "/sys/class/tty/";
// Scan through /sys/class/tty - it contains all tty-devices in the system
n = scandir(sysdir, &namelist, NULL, NULL);
n = scandir(sysdir, &namelist, NULL, alphasort);
if (n < 0)
perror("scandir");
else