2
0
mirror of https://github.com/sudo-project/sudo.git synced 2025-08-31 14:25:15 +00:00

Zero out errstr when there is no error; fixes bug #632

This commit is contained in:
Todd C. Miller
2014-01-30 13:06:29 -07:00
parent aaecd326e4
commit 5a636f2ea1

View File

@@ -1,5 +1,5 @@
/*
* Copyright (c) 2013 Todd C. Miller <Todd.Miller@courtesan.com>
* Copyright (c) 2013-2014 Todd C. Miller <Todd.Miller@courtesan.com>
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
@@ -62,5 +62,7 @@ atomode(const char *cp, const char **errstr)
errno = ERANGE;
debug_return_int(0);
}
if (errstr != NULL)
*errstr = NULL;
debug_return_int((int)lval);
}