From a338631abcbf66e15c532fb9ef62c3f175a9ed12 Mon Sep 17 00:00:00 2001 From: "Suren A. Chilingaryan" Date: Thu, 11 Mar 2010 21:08:45 +0100 Subject: One more bug pointed by lint --- src/librcc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/librcc.c b/src/librcc.c index a2d4718..d880433 100644 --- a/src/librcc.c +++ b/src/librcc.c @@ -508,8 +508,8 @@ rcc_class_id rccRegisterClass(rcc_context ctx, rcc_class *cl) { ctx->iclass[ctx->n_classes].disabled = NULL; ctx->iclass[ctx->n_classes].additional = NULL; - ctx->classes[ctx->n_classes++] = (rcc_class_ptr)(ctx->iclass + ctx->n_classes); - ctx->classes[ctx->n_classes] = NULL; + ctx->classes[ctx->n_classes] = (rcc_class_ptr)(ctx->iclass + ctx->n_classes); + ctx->classes[++ctx->n_classes] = NULL; if (!strcasecmp(cl->name, "id3")) { rccRegisterDisabledCharsets(ctx, ctx->n_classes - 1, rcc_default_disabled_id3_charsets); -- cgit v1.2.3