correct invocation of deferred functions
authorAleš Křenek <ljocha@ics.muni.cz>
Mon, 3 Oct 2005 16:58:03 +0000 (16:58 +0000)
committerAleš Křenek <ljocha@ics.muni.cz>
Mon, 3 Oct 2005 16:58:03 +0000 (16:58 +0000)
org.glite.jp.common/src/context.c

index f3b81b8..a6608aa 100644 (file)
@@ -130,7 +130,7 @@ int glite_jp_add_deferred(
        int     (**v)(glite_jp_context_t, void *) = ctx->deferred_func;
        int     i;
 
-       for (i=0; v && *v; i++);
+       for (i=0; v && v[i]; i++);
 
        ctx->deferred_func = realloc(ctx->deferred_func, (i+2) * sizeof *ctx->deferred_func);
        ctx->deferred_func[i] = func;