client: fix NULL dereference with no connections
authorLubomir Rintel <lkundrak@v3.sk>
Thu, 4 Feb 2016 15:47:00 +0000 (16:47 +0100)
committerLubomir Rintel <lkundrak@v3.sk>
Thu, 11 Feb 2016 16:01:03 +0000 (17:01 +0100)
commite8927c14ec3e830099e1525fa8fee4c9a7fc5032
tree068ea7a7f14eb9cc500e3cd10b41bce0d881f770
parent1783826856e13d5234e5968720adb36f1464c845
client: fix NULL dereference with no connections

Coverity complains:

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