summaryrefslogtreecommitdiff
path: root/src/mem.c
diff options
context:
space:
mode:
authorLukas Fleischer <calcurse@cryptocrack.de>2011-04-05 09:37:20 +0200
committerLukas Fleischer <calcurse@cryptocrack.de>2011-04-05 09:37:20 +0200
commita5a9ee60d62c02219ab5f2430335646beda59bc7 (patch)
tree11b8a9320a260ed9bac3cebd7bc8fe06812a6b28 /src/mem.c
parent6fb0f6f4c6c5e17b9485fc666823feede35723b9 (diff)
downloadcalcurse-a5a9ee60d62c02219ab5f2430335646beda59bc7.zip
Fix bad use of unsigned integers.
Unsigned values should never be compared to values less than zero. Detected with "find_unsigned.cocci" spatch from http://coccinelle.lip6.fr/impact_linux.php. Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de>
Diffstat (limited to 'src/mem.c')
-rw-r--r--src/mem.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/mem.c b/src/mem.c
index ac43103..1e54afc 100644
--- a/src/mem.c
+++ b/src/mem.c
@@ -95,8 +95,6 @@ stats_del_blk (unsigned id)
{
struct mem_blk *o, **i;
- EXIT_IF (id < 0, _("Incorrect block id"));
-
i = &mstats.blk;
for (o = mstats.blk; o; o = o->next)
{