--- tmp/gtkmeat-0.5.5/gtkmeat.c Tue Jan 12 05:01:53 1999 +++ gtkmeat-0.5.5/gtkmeat.c Wed Jan 20 14:54:17 1999 @@ -102,6 +102,7 @@ gchar *article[2], *link; FILE *fHnd; gint i; + int eof_found; fHnd = fopen(fname, "rb"); if (!fHnd) { @@ -112,16 +113,21 @@ fclose(fHnd); return FALSE; } + g_free(line); gtk_clist_clear(GTK_CLIST(list)); gtk_clist_freeze(GTK_CLIST(list)); link = NULL; rewind(fHnd); - while (line) { + for (i=0; i<2; i++) + article[i]=NULL; + for (eof_found=0;!eof_found;) { gboolean bGotit = FALSE; - if (line) /* should only happen once from above */ - g_free(line); for (i = 0 ; i