summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorYousong Zhou <yszhou4tech@gmail.com>2015-05-19 20:38:31 +0800
committerFelix Fietkau <nbd@openwrt.org>2015-05-23 16:44:46 +0200
commita85176bb5153b2834f7723bce1ab2a608dc834ea (patch)
treec2124abfa3986f731a6ceeb8264a7f96718992b5
parentf4f4f0b8d905231655b2a6fa20af4cc8b092d91e (diff)
interface: minor fix for unnecessary ++ operation.
Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
-rw-r--r--interface.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/interface.c b/interface.c
index ef70dea..a9ecf28 100644
--- a/interface.c
+++ b/interface.c
@@ -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);