[master] d9d38175a vmod_vtc: Insignificant polish

Nils Goroll nils.goroll at uplex.de
Wed Jul 9 07:34:05 UTC 2025


commit d9d38175a7c3b9e8ab3568e37d4751d37df0814f
Author: Nils Goroll <nils.goroll at uplex.de>
Date:   Wed Jul 9 09:29:01 2025 +0200

    vmod_vtc: Insignificant polish

diff --git a/vmod/vmod_vtc.c b/vmod/vmod_vtc.c
index 191282b2b..f43995813 100644
--- a/vmod/vmod_vtc.c
+++ b/vmod/vmod_vtc.c
@@ -477,9 +477,10 @@ vsl_line(VRT_CTX, char *str)
 		return;
 
 	str = strtok_r(NULL, "\r\n", &save);
-	s = TOSTRAND(str);
 	if (str == NULL)
 		s = vrt_null_strands;
+	else
+		s = TOSTRAND(str);
 
 	vmod_vsl(ctx, id, tag, side, s);
 }


More information about the varnish-commit mailing list