Hi,
trivial patch which does as in subject.
Regards.
--- old-sofsip-cli/src/sofsip_cli.c 2008-06-23 17:30:44.000000000 +0200
+++ new-sofsip-cli/src/sofsip_cli.c 2008-06-23 17:30:44.000000000 +0200
@@ -295,6 +295,7 @@
{ NULL }
};
GOptionContext *context;
+ GError *error = NULL;
/* step: process environment variables */
conf->ssc_aor = getenv("SOFSIP_ADDRESS");
@@ -309,7 +310,10 @@
#if HAVE_GST
g_option_context_add_group (context, gst_init_get_option_group ());
#endif
- g_option_context_parse(context, &ac, &av, NULL);
+ if (!g_option_context_parse(context, &ac, &av, &error)) {
+ g_print ("option parsing failed: %s\n", error->message);
+ exit (1);
+ }
g_option_context_free(context);
for (i = 1; i < ac; i++) {
-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Sofia-sip-devel mailing list
Sofia-sip-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sofia-sip-devel