uxc: fix potential NULL-pointer dereference
authorDaniel Golle <daniel@makrotopia.org>
Sun, 20 Feb 2022 12:43:36 +0000 (12:43 +0000)
committerDaniel Golle <daniel@makrotopia.org>
Wed, 13 Apr 2022 02:58:39 +0000 (03:58 +0100)
commit5c5e63f89ab3c0eb93e8733c196bb9b27e663c90
treea7f5e96c32fb447b318a30f48e0d051a27e8d82a
parent6343c3a8b967abd23c9f858341a5d46afab0f36a
uxc: fix potential NULL-pointer dereference

Check for NULL returned by strrchr() and return error in that case.
It should not be reachable as the string should always contain a '/'
character, but follow best practices anyway.

Coverity CID: 1500356 Dereference null return value
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
uxc.c