ext/cumo/cumo.c in cumo-0.2.3 vs ext/cumo/cumo.c in cumo-0.2.4

- old
+ new

@@ -122,12 +122,12 @@ // default is false env = getenv("CUMO_COMPATIBLE_MODE"); cumo_compatible_mode_enabled = (env != NULL && strcmp(env, "OFF") != 0 && strcmp(env, "0") != 0 && strcmp(env, "NO") != 0); - // default is true + // default is false env = getenv("CUMO_SHOW_WARNING"); - cumo_show_warning_enabled = env == NULL || (strcmp(env, "OFF") != 0 && strcmp(env, "0") != 0 && strcmp(env, "NO") != 0); + cumo_show_warning_enabled = (env != NULL && strcmp(env, "OFF") != 0 && strcmp(env, "0") != 0 && strcmp(env, "NO") != 0); // default is true env = getenv("CUMO_SHOW_WARNING_ONCE"); cumo_warning_once_enabled = env == NULL || (strcmp(env, "OFF") != 0 && strcmp(env, "0") != 0 && strcmp(env, "NO") != 0);