aboutsummaryrefslogtreecommitdiff
path: root/src/util.cpp
diff options
context:
space:
mode:
authorWladimir J. van der Laan <laanwj@gmail.com>2012-04-16 11:44:05 +0200
committerWladimir J. van der Laan <laanwj@gmail.com>2012-04-17 18:28:02 +0200
commit7fa3ad83a9060d4ebdb29f39e48eec7ea2220d98 (patch)
treea878c696d4b0c3d080cfbbe4960e44d63891f6a6 /src/util.cpp
parent4941aad6574c85d7c4cdf80a7faef48bc46add5f (diff)
Remove unused and unreachable code
Diffstat (limited to 'src/util.cpp')
-rw-r--r--src/util.cpp1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/util.cpp b/src/util.cpp
index a5427c061b..c1e3c5a806 100644
--- a/src/util.cpp
+++ b/src/util.cpp
@@ -301,7 +301,6 @@ bool error(const char *format, ...)
va_end(arg_ptr);
if (ret < 0 || ret >= limit)
{
- ret = limit - 1;
buffer[limit-1] = 0;
}
printf("ERROR: %s\n", buffer);