From 46091a9237f17f4295dca7140d8d70b4fce8b357 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Wed, 4 Aug 2004 16:39:30 +0000 Subject: introduce pa_xmalloc() and friends implement module auto loading git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@103 fefdeb5f-60dc-0310-8127-8f9354f1896f --- polyp/util.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'polyp/util.c') diff --git a/polyp/util.c b/polyp/util.c index 6e75c240..98d91075 100644 --- a/polyp/util.c +++ b/polyp/util.c @@ -35,6 +35,7 @@ #include #include "util.h" +#include "xmalloc.h" void pa_make_nonblock_fd(int fd) { int v; @@ -129,8 +130,7 @@ char *pa_sprintf_malloc(const char *format, ...) { int r; va_list ap; - c = realloc(c, size); - assert(c); + c = pa_xrealloc(c, size); va_start(ap, format); r = vsnprintf(c, size, format, ap); -- cgit