From 8e90b748a51b502a3b0430d58cfbc7954d4a801d Mon Sep 17 00:00:00 2001 From: "Thomas E. Dickey" Date: Thu, 24 Nov 2016 20:42:26 -0500 Subject: snapshot of project "lynx", label v2-8-9dev_11c --- WWW/Library/Implementation/HTGopher.c | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) (limited to 'WWW/Library/Implementation/HTGopher.c') diff --git a/WWW/Library/Implementation/HTGopher.c b/WWW/Library/Implementation/HTGopher.c index a8c8c434..4828a785 100644 --- a/WWW/Library/Implementation/HTGopher.c +++ b/WWW/Library/Implementation/HTGopher.c @@ -1,5 +1,5 @@ /* - * $LynxId: HTGopher.c,v 1.63 2016/10/15 01:11:44 tom Exp $ + * $LynxId: HTGopher.c,v 1.65 2016/11/24 16:38:54 tom Exp $ * * GOPHER ACCESS HTGopher.c * ============= @@ -692,8 +692,6 @@ static void de_escape(char *command, const char *selector) if (command == NULL) outofmem(__FILE__, "HTLoadGopher"); - assert(command != NULL); - q = command; while (*p) { /* Decode hex */ if (*p == HEX_ESCAPE) { @@ -1030,8 +1028,6 @@ static int parse_cso_fields(char *buf, outofmem(__FILE__, "HTLoadCSO"); } - assert(newf != NULL); - if (last) last->next = newf; else @@ -1517,7 +1513,7 @@ static int HTLoadCSO(const char *arg, Target = HTStreamStack(format_in, format_out, sink, anAnchor); - if (!Target || Target == NULL) { + if (Target == NULL) { char *temp = 0; HTSprintf0(&temp, CANNOT_CONVERT_I_TO_O, @@ -1803,8 +1799,6 @@ static int HTLoadGopher(const char *arg, if (command == NULL) outofmem(__FILE__, "HTLoadGopher"); - assert(command != NULL); - de_escape(command, selector); /* Bug fix TBL 921208 */ strcat(command, "\t"); @@ -1839,8 +1833,6 @@ static int HTLoadGopher(const char *arg, if (command == NULL) outofmem(__FILE__, "HTLoadGopher"); - assert(command != NULL); - de_escape(command, selector); /* Bug fix TBL 921208 */ strcpy(command, "query "); @@ -1860,8 +1852,6 @@ static int HTLoadGopher(const char *arg, if (command == NULL) outofmem(__FILE__, "HTLoadGopher"); - assert(command != NULL); - de_escape(command, selector); } FREE(p1); -- cgit 1.4.1-2-gfad0