c
// Define a safe default value for maxIterations
#define DEFAULT_MAX_ITERATIONS 1000

static int CFReserve_RedisCommand(RedisModuleCtx *ctx, RedisModuleString **argv, int argc) {
    // ...
    long long maxIterations = (CF_MAX_ITERATIONS > 0) ? CF_MAX_ITERATIONS : DEFAULT_MAX_ITERATIONS;
    // ...
}
