X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=bus%2Fconfig-loader-expat.c;h=b571fda3181fd39eac73e8dd1d48d78fdf780fb9;hb=7d9239c9c78cb6d0b9c282376fcf3cda1de23209;hp=51bbb51bd0b3e902d128898047f8c5b2c03f5bb5;hpb=dbecdeabb20e0ce11121819c63373f0afba57c58;p=platform%2Fupstream%2Fdbus.git diff --git a/bus/config-loader-expat.c b/bus/config-loader-expat.c index 51bbb51..b571fda 100644 --- a/bus/config-loader-expat.c +++ b/bus/config-loader-expat.c @@ -26,12 +26,7 @@ #include #include -static XML_Memory_Handling_Suite memsuite = -{ - dbus_malloc, - dbus_realloc, - dbus_free -}; +static XML_Memory_Handling_Suite memsuite; typedef struct { @@ -196,7 +191,11 @@ bus_config_load (const DBusString *file, _dbus_string_free (&context.content); return NULL; } - + + memsuite.malloc_fcn = dbus_malloc; + memsuite.realloc_fcn = dbus_realloc; + memsuite.free_fcn = dbus_free; + expat = XML_ParserCreate_MM ("UTF-8", &memsuite, NULL); if (expat == NULL) {