Skip to content

Commit 6f272c5

Browse files
committed
Fix segfault destroying prevFileTransfer
1 parent 7e50ba7 commit 6f272c5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libfetchers/builtin.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ static void builtinFetchTree(const BuiltinBuilderContext & ctx)
3535
// since it's in a broken state after the fork. We also must not
3636
// delete it, so hang on to the shared_ptr.
3737
// FIXME: move FileTransfer into fetchers::Settings.
38-
auto prevFileTransfer = resetFileTransfer();
38+
static auto prevFileTransfer = resetFileTransfer();
3939

4040
// FIXME: disable use of the git/tarball cache
4141

0 commit comments

Comments
 (0)