diff options
author | Eskil Heyn Olsen <eskil@src.gnome.org> | 1999-10-06 23:23:18 +0800 |
---|---|---|
committer | Eskil Heyn Olsen <eskil@src.gnome.org> | 1999-10-06 23:23:18 +0800 |
commit | fe4a9b93de19146309bf95f3ebaf1314069c1503 (patch) | |
tree | bf30984d9d13c663b3e1eb80d49b468b4ca182b6 /calendar/conduits/todo | |
parent | f0ba84bd71a02e1b6af050d6f3f6d2d31d08a3e5 (diff) | |
download | gsoc2013-evolution-fe4a9b93de19146309bf95f3ebaf1314069c1503.tar.gz gsoc2013-evolution-fe4a9b93de19146309bf95f3ebaf1314069c1503.tar.zst gsoc2013-evolution-fe4a9b93de19146309bf95f3ebaf1314069c1503.zip |
checks return values from gpilotd_init/connect.
* *conduit*[ch]: checks return values from gpilotd_init/connect.
* calender.c (vcalendar_create_from_calendar): removed a set
of cleanVObject cleanStrTbl, since the freed memory that the
function returned.
svn path=/trunk/; revision=1319
Diffstat (limited to 'calendar/conduits/todo')
-rw-r--r-- | calendar/conduits/todo/todo-conduit-control-applet.c | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/calendar/conduits/todo/todo-conduit-control-applet.c b/calendar/conduits/todo/todo-conduit-control-applet.c index 06f068b787..973a6192c8 100644 --- a/calendar/conduits/todo/todo-conduit-control-applet.c +++ b/calendar/conduits/todo/todo-conduit-control-applet.c @@ -260,9 +260,18 @@ main( int argc, char *argv[] ) /* get pilot name from gpilotd */ /* 1. initialize the gpilotd connection */ - gpilotd_init(&argc,argv); + if (gpilotd_init(&argc,argv)!=0) { + run_error_dialog(_("Cannot initialze the GnomePilot Daemon")); + g_error(_("Cannot initialze the GnomePilot Daemon")); + return -1; + } + /* 2 connect to gpilotd */ - if(!gpilotd_connect()) g_error("Cannot connect to gpilotd"); + if (gpilotd_connect()!=0) { + run_error_dialog(_("Cannot connect to the GnomePilot Daemon")); + g_error(_("Cannot connect to the GnomePilot Daemon")); + return -1; + } pilotId = get_pilot_id_from_gpilotd(); if(!pilotId) return -1; |