projects
/
collectd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
utils_ovs: fix potential NULL-string dereference
[collectd.git]
/
src
/
utils_ovs.c
diff --git
a/src/utils_ovs.c
b/src/utils_ovs.c
index
a081fa9
..
650a64c
100644
(file)
--- a/
src/utils_ovs.c
+++ b/
src/utils_ovs.c
@@
-1387,7
+1387,7
@@
yajl_val ovs_utils_get_map_value(yajl_val jval, const char *key) {
/* return map value if given key equals map key */
str_val = YAJL_GET_STRING(array_values[0]);
- if (strcmp(key, str_val) == 0)
+ if (str
_val != NULL && str
cmp(key, str_val) == 0)
return array_values[1];
}
return NULL;