From a85176bb5153b2834f7723bce1ab2a608dc834ea Mon Sep 17 00:00:00 2001 From: Yousong Zhou Date: Tue, 19 May 2015 20:38:31 +0800 Subject: [PATCH] interface: minor fix for unnecessary ++ operation. Signed-off-by: Yousong Zhou --- interface.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.11.0