fix possible crash on user deletion
[srvx.git] / src / policer.c
index 59bd7ed69b2a9d55c7c32f938e1996276dc8cd8d..21257ea153fc675d3a0a9b118934343dd261dfa4 100644 (file)
@@ -21,7 +21,7 @@
 #include "common.h"
 #include "policer.h"
 
-/* This policer uses the "leaky bucket" (GCRA) algorithm. */ 
+/* This policer uses the "leaky bucket" (GCRA) algorithm. */
 
 struct policer_params {
     double bucket_size;
@@ -41,11 +41,11 @@ int
 policer_params_set(struct policer_params *params, const char *param, const char *value)
 {
     if (!irccasecmp(param, "size")) {
-       params->bucket_size = strtod(value, NULL);
+        params->bucket_size = strtod(value, NULL);
     } else if (!irccasecmp(param, "drain-rate")) {
-       params->drain_rate = strtod(value, NULL);
+        params->drain_rate = strtod(value, NULL);
     } else {
-       return 0;
+        return 0;
     }
     return 1;
 }