diff mbox

[OpenWrt-Devel,4/6] interface: minor fix for unnecessary ++ operation.

Message ID 1432039113-24136-5-git-send-email-yszhou4tech@gmail.com
State Accepted
Headers show

Commit Message

Yousong Zhou May 19, 2015, 12:38 p.m. UTC
Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
---
 interface.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox

Patch

diff --git a/interface.c b/interface.c
index 9f6d8f0..997a721 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);