interface: minor fix for unnecessary ++ operation.
authorYousong Zhou <yszhou4tech@gmail.com>
Tue, 19 May 2015 12:38:31 +0000 (20:38 +0800)
committerFelix Fietkau <nbd@openwrt.org>
Sat, 23 May 2015 14:44:46 +0000 (16:44 +0200)
Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
interface.c

index ef70deab590224f96b710a087b79fb4b8b5561a1..a9ecf28d0e62647c6a5922bdcca6f2cf480d1a22 100644 (file)
@@ -139,7 +139,7 @@ void interface_add_error(struct interface *iface, const char *subsystem,
                memcpy(dest, data[i], datalen[i]);
                dest += datalen[i];
        }
-       error->data[n_data++] = NULL;
+       error->data[n_data] = NULL;
 
        if (subsystem)
                error->subsystem = strcpy(d_subsys, subsystem);