cli: sort_access_points() doesn't take a NULL argument
authorLubomir Rintel <lkundrak@v3.sk>
Thu, 4 Feb 2016 15:42:00 +0000 (16:42 +0100)
committerLubomir Rintel <lkundrak@v3.sk>
Thu, 11 Feb 2016 16:01:03 +0000 (17:01 +0100)
commit1783826856e13d5234e5968720adb36f1464c845
tree21074f7f396137ccfc742dc8edb1e04bfbd4c75d
parent80d9a43a25053f3071e4745dd5107e7c36b7f41f
cli: sort_access_points() doesn't take a NULL argument

The device never returns NULL access point list, it only deallocates it on
dispose(). Make this clear for Coverity:

CID 59387 (#1 of 1): Dereference before null check (REVERSE_INULL)
check_after_deref: Null-checking aps suggests that it may be null, but it has
already been dereferenced on all paths leading to the check.
clients/cli/devices.c