X-Git-Url: http://git.dolda2000.com/gitweb/?a=blobdiff_plain;f=clients%2Fgtk2%2Fhublist.c;h=7342945ac722c74bad929911e9461a81792efa7b;hb=302a260054ea38d3cb97be6d1a3010082c09265d;hp=ec4bcc0f330cd0136a9081a1cfdaeca637710851;hpb=affc65d85a239182629f917651297443b4f0f2d5;p=doldaconnect.git diff --git a/clients/gtk2/hublist.c b/clients/gtk2/hublist.c index ec4bcc0..7342945 100644 --- a/clients/gtk2/hublist.c +++ b/clients/gtk2/hublist.c @@ -1,6 +1,6 @@ /* * Dolda Connect - Modular multiuser Direct Connect-style client - * Copyright (C) 2007 Fredrik Tolf (fredrik@dolda2000.com) + * Copyright (C) 2007 Fredrik Tolf * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -196,6 +196,10 @@ void fetchhublist(char *url, regex_t *flt) u = parseurl(url); hc = htconnect(u); freeurl(u); + if(hc == NULL) { + msgbox(GTK_MESSAGE_ERROR, GTK_BUTTONS_OK, _("Could not read hublist from server: %s"), strerror(errno)); + return; + } state = 0; settags(); gtk_widget_show(main_pubhubbarbox);