From e788bbaa89ad9aa5a0cd56b5a705996c040b0090 Mon Sep 17 00:00:00 2001 From: dshaligram Date: Mon, 13 Aug 2007 18:05:30 +0000 Subject: Silenced some valgrind warning noises. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@1997 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/stuff.cc | 1 + 1 file changed, 1 insertion(+) (limited to 'crawl-ref/source/stuff.cc') diff --git a/crawl-ref/source/stuff.cc b/crawl-ref/source/stuff.cc index b1c972b826..6d0f282909 100644 --- a/crawl-ref/source/stuff.cc +++ b/crawl-ref/source/stuff.cc @@ -423,6 +423,7 @@ void end(int exit_code, bool print_error, const char *format, ...) if (error[error.length() - 1] != '\n') error += "\n"; fprintf(stderr, "%s", error.c_str()); + error.clear(); } #if defined(WIN32CONSOLE) || defined(DOS) -- cgit v1.2.3-54-g00ecf