|
@@ -387,7 +387,7 @@ geoip_get_client_history(time_t now, geoip_client_action_t action)
|
|
#if (MIN_IPS_TO_NOTE_COUNTRY > 0)
|
|
#if (MIN_IPS_TO_NOTE_COUNTRY > 0)
|
|
if (c >= MIN_IPS_TO_NOTE_COUNTRY) {
|
|
if (c >= MIN_IPS_TO_NOTE_COUNTRY) {
|
|
#else
|
|
#else
|
|
- if (1) {
|
|
|
|
|
|
+ if (c > 0) {
|
|
#endif
|
|
#endif
|
|
/* Round up to the next multiple of IP_GRANULARITY */
|
|
/* Round up to the next multiple of IP_GRANULARITY */
|
|
c += IP_GRANULARITY-1;
|
|
c += IP_GRANULARITY-1;
|