mirror of
https://git.pwmt.org/pwmt/zathura.git
synced 2025-01-01 03:45:59 +01:00
Don't check if unsigned variable is less than zero
This commit is contained in:
parent
8bf7587baf
commit
8d3cc43bbe
2 changed files with 2 additions and 2 deletions
|
@ -40,7 +40,7 @@ cc_open(girara_session_t* session, char* input)
|
||||||
path_max = PATH_MAX;
|
path_max = PATH_MAX;
|
||||||
#else
|
#else
|
||||||
path_max = pathconf(path,_PC_PATH_MAX);
|
path_max = pathconf(path,_PC_PATH_MAX);
|
||||||
if (path_max <= 0)
|
if (path_max == 0)
|
||||||
path_max = 4096;
|
path_max = 4096;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
|
@ -178,7 +178,7 @@ zathura_document_open(zathura_t* zathura, const char* path, const char* password
|
||||||
path_max = PATH_MAX;
|
path_max = PATH_MAX;
|
||||||
#else
|
#else
|
||||||
path_max = pathconf(path,_PC_PATH_MAX);
|
path_max = pathconf(path,_PC_PATH_MAX);
|
||||||
if (path_max <= 0)
|
if (path_max == 0)
|
||||||
path_max = 4096;
|
path_max = 4096;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue