remove warning
[lttv.git] / ltt / branches / poly / lttv / lttv / module.c
index aab28bca84b0dc71592b4215a1d02428e3a7d939..198e1385fb8ce2889785d33a4ca50e91f758beac 100644 (file)
@@ -26,7 +26,7 @@
 
 #include <lttv/module.h>
 #include <gmodule.h>
-
+#include <stdlib.h>
 
 struct _LttvLibrary
 {
@@ -199,8 +199,8 @@ static LttvLibrary *library_load(char *name, GError **error)
     
     if(gm != NULL) break;
 
-    g_string_append(messages, g_module_error());
-    g_string_append(messages, "\n");
+    messages = g_string_append(messages, g_module_error());
+    messages = g_string_append(messages, "\n");
     g_log(G_LOG_DOMAIN,G_LOG_LEVEL_INFO,"Trial failed, %s", g_module_error());
   }
 
@@ -600,6 +600,8 @@ static void destroy()
   g_assert(libraries->len <= 1); 
 
   initialized = FALSE;
+
+  exit(0);
 }
 
 LTTV_MODULE("module", "Modules in libraries",                        \
This page took 0.041714 seconds and 4 git commands to generate.