]> git.ipfire.org Git - thirdparty/libvirt.git/commit
glibcompat: Reimplement g_strdup_printf() and g_strdup_vprintf()
authorMichal Privoznik <mprivozn@redhat.com>
Thu, 17 Oct 2019 15:17:01 +0000 (17:17 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Fri, 18 Oct 2019 13:32:04 +0000 (15:32 +0200)
commit9706476254f8fe914847554b6b52a2621fb7f5f6
tree7d023bd565b5ab8f3e69ba54730b12f796d9fe52
parentb2c2a3ae91e4fefa69aeb384a9cdb24c2a43be7b
glibcompat: Reimplement g_strdup_printf() and g_strdup_vprintf()

These functions don't really abort() on OOM. The fix was merged
upstream, but not in the minimal version we require. Provide our
own implementation which can be removed once we bump the minimal
version.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
src/internal.h
src/libvirt_private.syms
src/util/Makefile.inc.am
src/util/glibcompat.c [new file with mode: 0644]
src/util/glibcompat.h [new file with mode: 0644]