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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user