diff options
author | Yousong Zhou <yszhou4tech@gmail.com> | 2015-05-19 20:38:31 +0800 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2015-05-23 16:44:46 +0200 |
commit | a85176bb5153b2834f7723bce1ab2a608dc834ea (patch) | |
tree | c2124abfa3986f731a6ceeb8264a7f96718992b5 | |
parent | f4f4f0b8d905231655b2a6fa20af4cc8b092d91e (diff) |
interface: minor fix for unnecessary ++ operation.
Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
-rw-r--r-- | interface.c | 2 |
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); |