dbus-launch: Protect concat2 by DBUS_ENABLE_EMBEDDED_TESTS

Signed-off-by: Thomas Zimmermann <tdz@users.sourceforge.net>
Reviewed-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=97282
This commit is contained in:
Thomas Zimmermann 2016-08-09 18:15:25 +02:00 committed by Simon McVittie
parent 21d6118081
commit 6ac1dfb343

View file

@ -205,6 +205,7 @@ xstrdup (const char *str)
return copy;
}
#ifdef DBUS_ENABLE_EMBEDDED_TESTS
static char *
concat2 (const char *a,
const char *b)
@ -224,6 +225,7 @@ concat2 (const char *a,
memcpy (ret + la, b, lb + 1);
return ret;
}
#endif /* DBUS_ENABLE_EMBEDDED_TESTS */
typedef enum
{