GNOME Bugzilla – Bug 791257
vapi: Fix potential null pointer dereference in strjoinv()
Last modified: 2017-12-05 15:37:11 UTC
Trivial patch attached.
Created attachment 365021 [details] [review] vapi: Fix potential null pointer dereference in strjoinv() The logic in the ‘is the array null or empty’ check was disjunctive rather than conjunctive. If (str_array == null), the condition would have short-circuited and tried to evaluate str_array.length, which would have crashed. Coverity CID: #1462389 (spotted when scanning Tracker) Signed-off-by: Philip Withnall <withnall@endlessm.com>