diff options
| author | Junio C Hamano <gitster@pobox.com> | 2022-05-20 15:26:59 -0700 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2022-05-20 15:26:59 -0700 |
| commit | e121c8c0d945d386faef2b9c602f82a13f6ff39b (patch) | |
| tree | 5c29156b042f892a8db8079c62d6715ce862c673 | |
| parent | 538dc459a0331c48b893c9f6ca0be5917860bb99 (diff) | |
| parent | e6bf70d17624425aa0d7e9518b6a62dad13e4c5d (diff) | |
| download | git-e121c8c0d945d386faef2b9c602f82a13f6ff39b.tar.gz | |
Merge branch 'ep/equals-null-cocci'
Merges up ep/maint-equals-null-cocci to the current codebase.
* ep/equals-null-cocci:
tree-wide: apply equals-null.cocci
| -rw-r--r-- | branch.c | 2 | ||||
| -rw-r--r-- | compat/fsmonitor/fsm-listen-darwin.c | 2 |
2 files changed, 2 insertions, 2 deletions
@@ -653,7 +653,7 @@ void create_branches_recursively(struct repository *r, const char *name, * be created in every submodule. */ for (i = 0; i < submodule_entry_list.entry_nr; i++) { - if (submodule_entry_list.entries[i].repo == NULL) { + if (!submodule_entry_list.entries[i].repo) { int code = die_message( _("submodule '%s': unable to find submodule"), submodule_entry_list.entries[i].submodule->name); diff --git a/compat/fsmonitor/fsm-listen-darwin.c b/compat/fsmonitor/fsm-listen-darwin.c index 0741fe834c..dc8a33130a 100644 --- a/compat/fsmonitor/fsm-listen-darwin.c +++ b/compat/fsmonitor/fsm-listen-darwin.c @@ -342,7 +342,7 @@ int fsm_listen__ctor(struct fsmonitor_daemon_state *state) data->cfar_paths_to_watch, kFSEventStreamEventIdSinceNow, 0.001, flags); - if (data->stream == NULL) + if (!data->stream) goto failed; /* |
