X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=diffcore.h;h=f1b5ca748cae8d40f599552c3605080808da7803;hb=180926636e47ecfe28d03cec493af75899994f0f;hp=ac159d7154ce02034eb88dab279894e5572da7b6;hpb=f9e7750621ca5e067f58a679caff5ff2f9881c4c;p=git.git diff --git a/diffcore.h b/diffcore.h index ac159d71..f1b5ca74 100644 --- a/diffcore.h +++ b/diffcore.h @@ -33,7 +33,7 @@ struct diff_filespec { * if false, use the name and read from * the filesystem. */ -#define DIFF_FILE_VALID(spec) ((spec) && ((spec)->mode) != 0) +#define DIFF_FILE_VALID(spec) (((spec)->mode) != 0) unsigned should_free : 1; /* data should be free()'ed */ unsigned should_munmap : 1; /* data should be munmap()'ed */ };