also check for read-only rpm db in /usr/share/rpm (ostree)
[platform/upstream/libsolv.git] / ext / tools_util.h
index a259976..cc64892 100644 (file)
@@ -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)
 {