-fix double free, linker issue
[oweals/gnunet.git] / src / template / gnunet-template.c
index 7b1d9dfff85d5929e4017637b72bcd1bd4245a70..0bbbc558fe8bd5b9de8dd511a635ea79bebf9625 100644 (file)
@@ -24,8 +24,7 @@
  * @author Christian Grothoff
  */
 #include "platform.h"
-#include "gnunet_getopt_lib.h"
-#include "gnunet_program_lib.h"
+#include "gnunet_util_lib.h"
 /* #include "gnunet_template_service.h" */
 
 /**
@@ -63,6 +62,10 @@ main (int argc, char *const *argv)
     /* FIMXE: add options here */
     GNUNET_GETOPT_OPTION_END
   };
+
+  if (GNUNET_OK != GNUNET_STRINGS_get_utf8_args (argc, argv, &argc, &argv))
+    return 2;
+
   return (GNUNET_OK ==
           GNUNET_PROGRAM_run (argc, argv, "gnunet-template",
                               gettext_noop ("help text"), options, &run,