diff --git a/src/lib66/parser_write.c b/src/lib66/parser_write.c
index c41a8cf347537a28e1eeede3c42b2927ef6bb4fc..36c10022eb8f28a0f8b5ca783e45b1b63b78e170 100644
--- a/src/lib66/parser_write.c
+++ b/src/lib66/parser_write.c
@@ -494,7 +494,8 @@ int write_logger(sv_alltype *sv, sv_execlog *log,char const *name, char const *d
 	}
 	size_t destlen = get_rlen_until(destlog.s,'/',destlog.len) ;
 	destlog.len = destlen ;
-		
+	if (!stralloc_0(&destlog)) retstralloc(0,"write_logger") ;
+	
 	r = dir_search(destlog.s,svname,S_IFDIR) ;
 	if (r < 0)
 	{