From 8d3cc43bbe7e273030af2c9573aaa4d34946bb75 Mon Sep 17 00:00:00 2001 From: Moritz Lipp Date: Wed, 5 Oct 2011 13:49:40 +0200 Subject: [PATCH] Don't check if unsigned variable is less than zero --- completion.c | 2 +- document.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/completion.c b/completion.c index dca7a03..8cd78a2 100644 --- a/completion.c +++ b/completion.c @@ -40,7 +40,7 @@ cc_open(girara_session_t* session, char* input) path_max = PATH_MAX; #else path_max = pathconf(path,_PC_PATH_MAX); - if (path_max <= 0) + if (path_max == 0) path_max = 4096; #endif diff --git a/document.c b/document.c index 32577fe..d898370 100644 --- a/document.c +++ b/document.c @@ -178,7 +178,7 @@ zathura_document_open(zathura_t* zathura, const char* path, const char* password path_max = PATH_MAX; #else path_max = pathconf(path,_PC_PATH_MAX); - if (path_max <= 0) + if (path_max == 0) path_max = 4096; #endif