From 0ccd8caa6a5e197d2e8c7a8575edeebd06ee6c6e Mon Sep 17 00:00:00 2001 From: Johannes Schindelin Date: Thu, 9 May 2019 13:47:49 +0200 Subject: [PATCH] fixup! Introduce helper to create symlinks that knows about index_state We do not actually need to test for `state != NULL`, as `state->delayed_checkout` had already been accessed before this. Signed-off-by: Johannes Schindelin --- entry.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/entry.c b/entry.c index dc0b7a7460..c631a8f8dc 100644 --- a/entry.c +++ b/entry.c @@ -289,7 +289,7 @@ static int write_entry(struct cache_entry *ce, if (!has_symlinks || to_tempfile) goto write_file_entry; - ret = create_symlink(state ? state->istate : NULL, new_blob, path); + ret = create_symlink(state->istate, new_blob, path); free(new_blob); if (ret) return error_errno("unable to create symlink %s", path);