X-Git-Url: http://dolda2000.com/gitweb/?a=blobdiff_plain;f=clients%2Fgtk2%2Fmain.c;h=880c641c46ae448ed7aed14da3348d953d89dc61;hb=031b283fc9079ac741465f454e14e64129528ba8;hp=ccdd6d400b913793c7b75b1beb550a1757d64da4;hpb=7ac0fb29c19c6d339148db86ee0cfeea3f53d64a;p=doldaconnect.git diff --git a/clients/gtk2/main.c b/clients/gtk2/main.c index ccdd6d4..880c641 100644 --- a/clients/gtk2/main.c +++ b/clients/gtk2/main.c @@ -1518,6 +1518,11 @@ int pubhubxmlhandler(int op, char *buf, size_t *len) } break; case PHO_EOF: + if(ctxt == NULL) + { + msgbox(GTK_MESSAGE_WARNING, GTK_BUTTONS_OK, _("A hub list could not be read from %s"), pubhubaddr); + break; + } xmlParseChunk(ctxt, NULL, 0, 1); if(!ctxt->wellFormed) {