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

Commitc34cd51

Browse files
authored
Merge pull request#424 from eriksjolund/mkcomposefs-handle-failed_path-NULL
mkcomposefs: handle failed_path NULL from lcfs_build()
2 parents233177a +91da735 commitc34cd51

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

‎tools/mkcomposefs.c‎

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1690,8 +1690,11 @@ int main(int argc, char **argv)
16901690
buildflag_copy |=LCFS_BUILD_NO_INLINE;
16911691

16921692
root=lcfs_build(AT_FDCWD,src_path,buildflag_copy,&failed_path);
1693-
if (root==NULL)
1694-
err(EXIT_FAILURE,"error accessing %s",failed_path);
1693+
if (root==NULL) {
1694+
// An allocation error in maybe_join_path() can cause
1695+
// failed_path to be set to NULL
1696+
err(EXIT_FAILURE,"error accessing %s",failed_path ?:"");
1697+
}
16951698

16961699
if (compute_digest(threads,root,src_path,buildflags)<0)
16971700
err(EXIT_FAILURE,"error computing digest");

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp