GNOME Bugzilla – Bug 730365
plparse: Fix invalid check of non-dereferenced pointer against NULL
Last modified: 2014-05-19 11:28:21 UTC
Patch attached.
Created attachment 276756 [details] [review] plparse: Fix invalid check of non-dereferenced pointer against NULL g_strsplit() guarantees to return a non-empty array. line is set to lines+1, so can never be equal to 0 (i.e. NULL). It needs to be dereferenced first to check for the array delimiter. Coverity issue: #60477
Review of attachment 276756 [details] [review]: Looks good
Attachment 276756 [details] pushed as 6052b33 - plparse: Fix invalid check of non-dereferenced pointer against NULL