Article View: news.software.readers
Article #36043Patch for crash when selecting a newsgroup when none are available.
From: David Goh
Date: Fri, 12 Sep 1997 00:00
Date: Fri, 12 Sep 1997 00:00
42 lines
1502 bytes
1502 bytes
Patch for crash when selecting a newsgroup when none are available.
This is a patch for slrn0.9.4.2:
=== begin slrn.diff ===
--- slrn0942/src/group.c Mon Jul 7 15:11:02 1997
+++ slrn/src/group.c Fri Sep 12 14:40:36 1997
@@ -760,6 +760,9 @@
}
else prefix = 0;
+ if (Slrn_Group_Current_Group == NULL)
+ return -1;
+
last_n = Slrn_Group_Current_Group->unread;
if (-1 == group_sync_group_with_server (Slrn_Group_Current_Group, &min, &max))
@@ -1355,6 +1358,9 @@
static void select_group_cmd (void)
{
+ if (Slrn_Group_Current_Group == NULL)
+ return;
+
if (-1 == slrn_group_select_group ())
slrn_error ("No unread articles.");
}
=== end slrn.diff ===
Later,
David
--
Unico Computer Systems Pty Ltd
David Goh Software Engineer
david@unico.com.au (03) 9866 5688
Technical Details
Message-ID:
<5vaibj$4tp@padre.unico.com.au>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!not-for-mailShow Full Headers
Complete Article Headers
Message-ID: <5vaibj$4tp@padre.unico.com.au> Subject: Patch for crash when selecting a newsgroup when none are available. Date: Fri, 12 Sep 1997 00:00:00 +0000 From: david@unico.com.au (David Goh) Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!not-for-mail X-Deja-AN: 271808170 Reply-To: david@unico.com.au X-Die-Netscrape: <blink> Organization: UNICO Computer Systems, Melbourne, Australia Newsgroups: news.software.readers