Fixed a stack smash in the wiki module
[citadel.git] / citadel / serv_extensions.c
index 76dbacb4a028ebe476ceda0e6abab84ddf09088a..4f294cf24effc2081eb874b51f7103d9174b9953 100644 (file)
@@ -978,13 +978,9 @@ int PerformMessageHooks(struct CtdlMessage *msg, int EventType)
 
        /* Otherwise, run all the hooks appropriate to this event type.
         */
-       int num_hooks_processed = 0;
        for (fcn = MessageHookTable; fcn != NULL; fcn = fcn->next) {
                if (fcn->eventtype == EventType) {
                        total_retval = total_retval + (*fcn->h_function_pointer) (msg);
-                       syslog(LOG_DEBUG, "%d hooks completed, total_retval=%d",
-                               ++num_hooks_processed, total_retval
-                       );
                }
        }