Skip to content

Commit 512488f

Browse files
committed
fu_util: fix ft_strdup
1 parent e963f64 commit 512488f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/fu_util/impl/ft_impl.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -321,7 +321,7 @@ ft_strdup(ft_str_t str) {
321321
if (str.ptr != NULL)
322322
memcpy(mem, str.ptr, str.len+1);
323323
else
324-
mem[0] = '0';
324+
mem[0] = '\0';
325325
str.ptr = mem;
326326
return str;
327327
}

0 commit comments

Comments
 (0)