aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorphilhofer <phofer@umich.edu>2018-12-23 13:28:25 -0800
committerMike Frysinger <vapier@gmail.com>2018-12-23 20:27:06 -0500
commit40f70466969b340ee5e277c98a4b27a9117b795e (patch)
treeb040692ddb067a5a99763348fec49516f0d7d8be
parent894995176e827eef16bf90b6479b7c285677ceef (diff)
src/rc/openrc-run.c: remove duplicate statement
The statement ll = strlen(applet); appears twice in the same block without any intervening assignment to the variables 'll' or 'applet' Remove the second (duplicate) statement.
-rw-r--r--src/rc/openrc-run.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/rc/openrc-run.c b/src/rc/openrc-run.c
index 43889f2d..229f5ed3 100644
--- a/src/rc/openrc-run.c
+++ b/src/rc/openrc-run.c
@@ -1223,7 +1223,6 @@ int main(int argc, char **argv)
/* Make our prefix string */
prefix = xmalloc(sizeof(char) * l + 1);
- ll = strlen(applet);
memcpy(prefix, applet, ll);
memset(prefix + ll, ' ', l - ll);
memset(prefix + l, 0, 1);