diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/htsglobal.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/htsglobal.h b/src/htsglobal.h index 5085865..99db597 100644 --- a/src/htsglobal.h +++ b/src/htsglobal.h @@ -279,8 +279,8 @@ Please visit our Website: http://www.httrack.com #define maximum(A,B) ( (A) > (B) ? (A) : (B) ) #define minimum(A,B) ( (A) < (B) ? (A) : (B) ) -/* chaine vide? */ -#define strnotempty(A) (((A)[0]!='\0') ? 1 : 0) +/* chaine no empty ? (and not null) */ +#define strnotempty(A) (((A) != NULL && (A)[0] != '\0')) /* optimisation inline si possible */ #ifdef __cplusplus |