Use < 0 instead of == -1
This commit is contained in:
@@ -11,7 +11,7 @@ apathmax(char **p, long *size)
|
||||
{
|
||||
errno = 0;
|
||||
|
||||
if ((*size = pathconf("/", _PC_PATH_MAX)) == -1) {
|
||||
if ((*size = pathconf("/", _PC_PATH_MAX)) < 0) {
|
||||
if (errno == 0) {
|
||||
*size = BUFSIZ;
|
||||
} else {
|
||||
|
Reference in New Issue
Block a user