aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/PJ_cart.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/PJ_cart.c b/src/PJ_cart.c
index 1373e870..257d0dca 100644
--- a/src/PJ_cart.c
+++ b/src/PJ_cart.c
@@ -486,13 +486,13 @@ int pj_cart_selftest (void) {
/* proj_info() */
/* this one is difficult to test, since the output changes with the setup */
info = proj_info();
- if (info.version) {
+ if (info.version[0] != '\0' ) {
char tmpstr[64];
sprintf(tmpstr, "%d.%d.%d", info.major, info.minor, info.patch);
if (strcmp(info.version, tmpstr)) return 55;
}
- if (!info.release) return 56;
- if (!info.searchpath) return 57;
+ if (info.release[0] == '\0') return 56;
+ if (info.searchpath[0] == '\0') return 57;
/* proj_pj_info() */
P = proj_create(0, "+proj=august"); /* august has no inverse */