[PATCH] A little patch to fix a segfault

View: New views
2 Messages — Rating Filter:   Alert me  

[PATCH] A little patch to fix a segfault

by Nicolas-89 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

Here the patch about OpenSync :

Index: opensync/client/osplugin.c
===================================================================
--- opensync/client/osplugin.c (révision 5507)
+++ opensync/client/osplugin.c (copie de travail)
@@ -67,7 +67,7 @@
  usage(0);
  client = osync_client_new(&error);
  if (!client)
- goto error;
+ goto done;
 
  if (!strcmp (argv[1], "-f")) {
  usePipes = TRUE;
@@ -128,6 +128,7 @@
  error:
  osync_client_unref(client);
 
+ done:
  osync_trace(TRACE_EXIT_ERROR, "%s: %s", __func__,
osync_error_print(&error));
  fprintf(stderr, "Unable to initialize environment: %s\n",
osync_error_print(&error));
  osync_error_unref(&error);


Regards,

--
Nicolas VIVIEN


------------------------------------------------------------------------------
_______________________________________________
Opensync-devel mailing list
Opensync-devel@...
https://lists.sourceforge.net/lists/listinfo/opensync-devel

Re: [PATCH] A little patch to fix a segfault

by Daniel Gollub-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Wednesday 01 April 2009 07:57:43 pm Nicolas wrote:
> Hi,
>
> Here the patch about OpenSync :

Thanks - committed to SVN: r5509.

Best Regards,
Daniel

------------------------------------------------------------------------------
_______________________________________________
Opensync-devel mailing list
Opensync-devel@...
https://lists.sourceforge.net/lists/listinfo/opensync-devel