Skip to content

Commit

Permalink
fixed incorrect NULL check (Coverity)
Browse files Browse the repository at this point in the history
CID 1457198
  • Loading branch information
msmeissn committed Feb 21, 2021
1 parent dfc56d5 commit 492648b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion camlibs/lumix/lumix.c
Original file line number Diff line number Diff line change
Expand Up @@ -859,7 +859,7 @@ GetPixRange(Camera *camera, int start, int num) {
docin2 = xmlReadMemory ((char*)xchar, strlen((char*)xchar), "http://gphoto.org/", "utf-8", 0);
if (!docin2) return NULL;
docroot2 = xmlDocGetRootElement (docin2);
if (!docroot) {
if (!docroot2) {
xmlFreeDoc (docin2);
return NULL;
}
Expand Down

0 comments on commit 492648b

Please sign in to comment.