projects
/
platform
/
upstream
/
libsolv.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
also check for read-only rpm db in /usr/share/rpm (ostree)
[platform/upstream/libsolv.git]
/
ext
/
tools_util.h
diff --git
a/ext/tools_util.h
b/ext/tools_util.h
index
a259976
..
cc64892
100644
(file)
--- a/
ext/tools_util.h
+++ b/
ext/tools_util.h
@@
-91,6
+91,12
@@
join2(struct joindata *jd, const char *s1, const char *s2, const char *s3)
return jd->tmp;
}
+static inline char *
+join_dup(struct joindata *jd, const char *s)
+{
+ return s ? join2(jd, s, 0, 0) : 0;
+}
+
static inline void
join_freemem(struct joindata *jd)
{