Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit512488f

Browse files
committed
fu_util: fix ft_strdup
1 parente963f64 commit512488f

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
returnstr;
327327
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp