diff --git a/src/detection/weather/weather.c b/src/detection/weather/weather.c index 0f65af8cf..8a70a966a 100644 --- a/src/detection/weather/weather.c +++ b/src/detection/weather/weather.c @@ -7,8 +7,8 @@ static const char* status = FF_UNITIALIZED; void ffPrepareWeather(FFWeatherOptions* options) { if (status != FF_UNITIALIZED) { - status = "Weather module can only be used once due to internal limitations"; - return; + fputs("Error: Weather module can only be used once due to internal limitations\n", stderr); + exit(1); } state.timeout = options->timeout;