about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/GridText.c3
-rw-r--r--src/LYPrint.c5
-rw-r--r--src/LYUtils.c4
-rw-r--r--src/parsdate.c4
4 files changed, 8 insertions, 8 deletions
diff --git a/src/GridText.c b/src/GridText.c
index 871226f5..e4490310 100644
--- a/src/GridText.c
+++ b/src/GridText.c
@@ -1,5 +1,5 @@
 /*
- * $LynxId: GridText.c,v 1.237 2012/08/02 09:40:04 tom Exp $
+ * $LynxId: GridText.c,v 1.238 2012/08/03 17:28:03 tom Exp $
  *
  *		Character grid hypertext object
  *		===============================
@@ -7787,6 +7787,7 @@ int do_www_search(DocInfo *doc)
 	    HTInfoMsg(CANCELLED);
 	    code = NULLFILE;
 	} else if (!LYforce_no_cache &&
+		   !isBEmpty(temp) &&
 		   !strcmp(temp->str, searchstring->str)) {
 	    /*
 	     * Don't resubmit the same query unintentionally.
diff --git a/src/LYPrint.c b/src/LYPrint.c
index 7ba27e08..f1e8675e 100644
--- a/src/LYPrint.c
+++ b/src/LYPrint.c
@@ -1,5 +1,5 @@
 /*
- * $LynxId: LYPrint.c,v 1.96 2012/07/07 15:19:42 tom Exp $
+ * $LynxId: LYPrint.c,v 1.97 2012/08/03 17:39:19 tom Exp $
  */
 #include <HTUtils.h>
 #include <HTAccess.h>
@@ -137,13 +137,12 @@ static void SetupFilename(bstring **filename,
 {
     HTFormat format;
     HTAtom *encoding;
-    char *cp;
 
     BStrCopy0(*filename, sug_filename);		/* add suggestion info */
     BStrAlloc(*filename, LY_MAXPATH);	/* FIXME */
     change_sug_filename((*filename)->str);
     if (!(HTisDocumentSource())
-	&& (cp = strrchr((*filename)->str, '.')) != NULL) {
+	&& strrchr((*filename)->str, '.') != NULL) {
 	format = HTFileFormat((*filename)->str, &encoding, NULL);
 	CTRACE((tfp, "... format %s\n", format->name));
 	if (!strcasecomp(format->name, "text/html") ||
diff --git a/src/LYUtils.c b/src/LYUtils.c
index 3da61c4f..8a7d0800 100644
--- a/src/LYUtils.c
+++ b/src/LYUtils.c
@@ -1,5 +1,5 @@
 /*
- * $LynxId: LYUtils.c,v 1.224 2012/07/06 00:29:26 tom Exp $
+ * $LynxId: LYUtils.c,v 1.225 2012/08/03 17:38:47 tom Exp $
  */
 #include <HTUtils.h>
 #include <HTTCP.h>
@@ -6684,7 +6684,7 @@ BOOLEAN LYValidateFilename(bstring **result,
 	}
 #endif
     } else {
-	if ((cp = FindLeadingTilde((*given)->str, TRUE)) != 0) {
+	if (FindLeadingTilde((*given)->str, TRUE) != 0) {
 	    char *cp1 = NULL;
 
 	    StrAllocCopy(cp1, (*given)->str);
diff --git a/src/parsdate.c b/src/parsdate.c
index fb486698..94e594a0 100644
--- a/src/parsdate.c
+++ b/src/parsdate.c
@@ -21,7 +21,7 @@ static const char yysccsid[] = "@(#)yaccpar	1.9 (Berkeley) 02/21/93";
 #include <LYLeaks.h>
 
 /*
- *  $LynxId: parsdate.c,v 1.13 2012/02/10 01:37:59 tom Exp $
+ *  $LynxId: parsdate.c,v 1.14 2012/08/03 18:36:10 tom Exp $
  *
  *  This module is adapted and extended from tin, to use for LYmktime().
  *
@@ -1008,7 +1008,7 @@ static int yygrowstack(YYSTACKDATA *data)
     else if ((newsize *= 2) > YYMAXDEPTH)
         newsize = YYMAXDEPTH;
 
-    i = data->s_mark - data->s_base;
+    i = (int) (data->s_mark - data->s_base);
     newss = (short *)realloc(data->s_base, newsize * sizeof(*newss));
     if (newss == 0)
         return -1;