From: Yousong Zhou Date: Tue, 19 May 2015 12:38:31 +0000 (+0800) Subject: interface: minor fix for unnecessary ++ operation. X-Git-Url: http://207.154.207.93/?a=commitdiff_plain;h=a85176bb5153b2834f7723bce1ab2a608dc834ea;p=project%2Fnetifd.git interface: minor fix for unnecessary ++ operation. Signed-off-by: Yousong Zhou --- 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);