diff options
| author | Junio C Hamano <gitster@pobox.com> | 2022-05-02 10:06:00 -0700 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2022-05-02 10:06:04 -0700 |
| commit | 2b0a58d164b0642be3eeb476fecd28114445cdd5 (patch) | |
| tree | 2759549fcdd5d3ce4c9776f67937b4b75c07070f /path.c | |
| parent | Git 2.35.3 (diff) | |
| parent | tree-wide: apply equals-null.cocci (diff) | |
| download | git-2b0a58d164b0642be3eeb476fecd28114445cdd5.tar.gz git-2b0a58d164b0642be3eeb476fecd28114445cdd5.zip | |
Merge branch 'ep/maint-equals-null-cocci' for maint-2.35
* ep/maint-equals-null-cocci:
tree-wide: apply equals-null.cocci
contrib/coccinnelle: add equals-null.cocci
Diffstat (limited to 'path.c')
| -rw-r--r-- | path.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -733,7 +733,7 @@ char *interpolate_path(const char *path, int real_home) struct strbuf user_path = STRBUF_INIT; const char *to_copy = path; - if (path == NULL) + if (!path) goto return_null; if (skip_prefix(path, "%(prefix)/", &path)) |
