gisi: fix g_pn_netlink_start() return value

This commit is contained in:
Aki Niemi 2009-06-24 13:20:54 +03:00
parent 8199937bb5
commit 127b56bacc
1 changed files with 1 additions and 1 deletions

View File

@ -181,7 +181,7 @@ GPhonetNetlink *g_pn_netlink_start(GPhonetNetlinkFunc cb, void *opaque)
self->watch = g_io_add_watch(chan, G_IO_IN|G_IO_ERR|G_IO_HUP,
g_pn_nl_process, self);
g_io_channel_unref(chan);
return 0;
return self;
error:
if (fd != -1)