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 ef70dea..a9ecf28 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);