summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Drake <tlsa@netsurf-browser.org>2013-11-08 13:50:04 (GMT)
committer Michael Drake <tlsa@netsurf-browser.org>2013-11-08 13:50:04 (GMT)
commit5d6f88a93529b36355404d630aed4d6303b8272a (patch)
treebf6809f06f244a863000027420bee0be1f541824
parente1d3f4100a4e917103780eca759304fa6ee9a1c9 (diff)
downloadlibwapcaplet-5d6f88a93529b36355404d630aed4d6303b8272a.tar.gz
libwapcaplet-5d6f88a93529b36355404d630aed4d6303b8272a.tar.bz2
Fix Coverity #1127059. Dereference after NULL check.
-rw-r--r--src/libwapcaplet.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libwapcaplet.c b/src/libwapcaplet.c
index bd20abc..b82d62f 100644
--- a/src/libwapcaplet.c
+++ b/src/libwapcaplet.c
@@ -96,6 +96,8 @@ lwc__intern(const char *s, size_t slen,
eret = lwc__initialise();
if (eret != lwc_error_ok)
return eret;
+ if (ctx == NULL)
+ return lwc_error_oom;
}
h = hasher(s, slen);