1
0
Fork 0
mirror of https://github.com/hermitcore/libhermit.git synced 2025-03-09 00:00:03 +01:00

Removed <0 check for unsigned value.

This commit is contained in:
Jens Breitbart 2016-03-13 14:26:14 +01:00
parent 8ca290671e
commit 3a8b2c2d15

View file

@ -75,7 +75,7 @@ static int init_env(void)
if (str)
{
isle_nr = atoi(str);
if ((isle_nr < 0) || (isle_nr > 254))
if (isle_nr > 254)
isle_nr = 0;
}