procd: Fix minor null pointer dereference.
authorRosen Penev <rosenp@gmail.com>
Mon, 25 Dec 2017 22:52:20 +0000 (14:52 -0800)
committerJohn Crispin <john@phrozen.org>
Tue, 2 Jan 2018 06:22:50 +0000 (07:22 +0100)
commit6900a6be63c63707c304cfe79c7469725fd07c11
treed4d5393a514ea4dba28f085b1a58ec963753ee4b
parent7aad9409d22dc38b71ec75d2aafcfa32426b5594
procd: Fix minor null pointer dereference.

Null pointer check was placed after assigning values to c.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
plug/hotplug.c