mail_daemon: Add missing throw
Fix PVS V596 Pointed out in PVS-Studio blog https://www.viva64.com/en/b/0644/ Change-Id: Icf1f2d651dab84730fd348759ee7d19264ccbf75 Reviewed-on: https://review.haiku-os.org/c/haiku/+/2141 Reviewed-by: Stephan Aßmus <[email protected]>
This commit is contained in:
committed by
Stephan Aßmus
parent
eacbae702d
commit
da3fe7140a
@@ -656,7 +656,7 @@ Response::ExtractNumber(BDataIO& stream)
|
|||||||
const char* end;
|
const char* end;
|
||||||
size_t number = strtoul(string.String(), (char**)&end, 10);
|
size_t number = strtoul(string.String(), (char**)&end, 10);
|
||||||
if (end == NULL || end[0] != '\0')
|
if (end == NULL || end[0] != '\0')
|
||||||
ParseException("Invalid number!");
|
throw ParseException("Invalid number!");
|
||||||
|
|
||||||
return number;
|
return number;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user