chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
resolve: fix NULL deref on strv comparison
[elogind.git]
/
src
/
shared
/
strv.h
diff --git
a/src/shared/strv.h
b/src/shared/strv.h
index 47618bd26c8c44099e463ad6cdb5fd7466109d51..774c67a8c81bfff6f114a29f9383d2a92fc46a1f 100644
(file)
--- a/
src/shared/strv.h
+++ b/
src/shared/strv.h
@@
-49,6
+49,8
@@
int strv_consume_prepend(char ***l, char *value);
char **strv_remove(char **l, const char *s);
char **strv_uniq(char **l);
+bool strv_equal(char **a, char **b);
+
#define strv_contains(l, s) (!!strv_find((l), (s)))
char **strv_new(const char *x, ...) _sentinel_;