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

Yousong Zhou yszhou4tech at gmail.com
Tue May 19 08:38:31 EDT 2015


Signed-off-by: Yousong Zhou <yszhou4tech at gmail.com>
---
 interface.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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);
-- 
1.7.10.4
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel



More information about the openwrt-devel mailing list