summary refs log tree commit diff
diff options
context:
space:
mode:
authorDuncan Overbruck <mail@duncano.de>2019-08-25 13:10:06 +0200
committerDuncan Overbruck <mail@duncano.de>2019-08-25 14:21:18 +0200
commitca0f18e801715d921f717287dd67718cfcb2f3b0 (patch)
tree9004539128dd9721e575a982d8ff6986f578c401
parent6d251bc654f5cc29070536aae58f0aaf6e7d2f39 (diff)
downloadrunit-void-ca0f18e801715d921f717287dd67718cfcb2f3b0.tar.gz
runit-void-ca0f18e801715d921f717287dd67718cfcb2f3b0.tar.xz
runit-void-ca0f18e801715d921f717287dd67718cfcb2f3b0.zip
vlogger: no need to duplicate the tag name from service path
-rw-r--r--vlogger.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/vlogger.c b/vlogger.c
index d820991..c886239 100644
--- a/vlogger.c
+++ b/vlogger.c
@@ -94,7 +94,7 @@ main(int argc, char *argv[])
 				*p = '\0';
 			if ((p = strrchr(pwd, '/')) && strncmp(p+1, "log", 3) == 0 &&
 			    (*p = '\0', (p = strrchr(pwd, '/'))) && (*(p+1) != '\0')) {
-				tag = strdup(p+1);
+				tag = p+1;
 			}
 		}
 	}