fixed crash in modules.c
[NeonServV5.git] / src / modules.c
index 064d84f64a67192b2358af4a2d747f1a1c99e67e..dc3f59842aec364da536a1c144de5b4595bdf274 100644 (file)
@@ -273,7 +273,7 @@ static void unregister_module_hooks(int module_id);
 void loadModules() {
     char **modulelist = get_all_fieldnames("modules");
     int i = 0;
-    while(*modulelist[i]) {
+    while(modulelist[i]) {
         loadModule(modulelist[i]);
         i++;
     }