Fix globset compilation warning 48/23648/3 8.99.5 icefish/8.99.5 icefish_8.99.5
authorJosé Bollo <jose.bollo@iot.bzh>
Thu, 23 Jan 2020 17:09:51 +0000 (18:09 +0100)
committerJosé Bollo <jose.bollo@iot.bzh>
Sun, 26 Jan 2020 22:20:29 +0000 (22:20 +0000)
commit862fb68b0a1e60449ac6d977727c7e2b4f069c99
tree0fcbed6c485cea2d676f992d37ecbbb45d014d99
parent65353dce81a629e042800bb7b86fcd869a76727e
Fix globset compilation warning

The case of returning NULL is not tested in `globset_add`.
It is safe because `grow` is called first and then `search`
never returns a NULL pointer.

Bug-AGL: SPEC-3134

Signed-off-by: José Bollo <jose.bollo@iot.bzh>
Change-Id: I21e8ba3a6c8202a920c6784f4d61376450b9a063
src/globset.c