diff src/input.cc @ 7336:745a8299c2b5

[project @ 2007-12-28 20:56:55 by jwe]
author jwe
date Fri, 28 Dec 2007 20:56:58 +0000
parents fb902b3b2a5d
children 73036cdd855d
line wrap: on
line diff
--- a/src/input.cc
+++ b/src/input.cc
@@ -66,7 +66,6 @@
 #include "pt-const.h"
 #include "pt-stmt.h"
 #include "sighandlers.h"
-#include "symtab.h"
 #include "sysdep.h"
 #include "unwind-prot.h"
 #include "utils.h"
@@ -265,7 +264,7 @@
 
       // There is no need to update the load_path cache if there is no
       // user input.
-      if (! retval.empty ())
+      if (! retval.empty () && retval.find_first_not_of (" \t\n\r") != NPOS)
 	load_path::update ();
     }
   else