From 6bec4937ec5876ee46e05d9de3b621d809f6ede8 Mon Sep 17 00:00:00 2001 From: Aoran Zeng Date: Wed, 6 Sep 2023 16:56:38 +0800 Subject: [PATCH] Make up the fogotten return for `xy_strdup()` --- xy.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/xy.h b/xy.h index 1b33d85..ecde44f 100644 --- a/xy.h +++ b/xy.h @@ -3,7 +3,7 @@ * License : MIT * Authors : Aoran Zeng * Created on : <2023-08-28> -* Last modified : <2023-09-05> +* Last modified : <2023-09-06> * * xy: * @@ -239,6 +239,7 @@ xy_strdup(const char* str) size_t len = strlen(str); char* new = xy_malloc0(len+1); strcpy(new, str); + return new; }