]> jfr.im git - irc/quakenet/newserv.git/blobdiff - core/modules.c
fixes for clang
[irc/quakenet/newserv.git] / core / modules.c
index 4063669dfe1a7ae57500e9f5aff9ab28677d4089..08a1749710b593ba1e5098fd65164d5f746d81a8 100644 (file)
@@ -400,8 +400,7 @@ void preparereload(char *modulename) {
     moduledeps[i].reloading=0;
 
   /* Do nothing if this module is not loaded */
-  i=getindex(modulebuf);
-  if (i<0)
+  if (getindex(modulebuf)<0)
     return;
     
   if ((mdp=getmoduledep(modulebuf))) {