Skip to content

Commit e121c8c

Browse files
committed
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
2 parents 538dc45 + e6bf70d commit e121c8c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

branch.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -653,7 +653,7 @@ void create_branches_recursively(struct repository *r, const char *name,
653653
* be created in every submodule.
654654
*/
655655
for (i = 0; i < submodule_entry_list.entry_nr; i++) {
656-
if (submodule_entry_list.entries[i].repo == NULL) {
656+
if (!submodule_entry_list.entries[i].repo) {
657657
int code = die_message(
658658
_("submodule '%s': unable to find submodule"),
659659
submodule_entry_list.entries[i].submodule->name);

compat/fsmonitor/fsm-listen-darwin.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -342,7 +342,7 @@ int fsm_listen__ctor(struct fsmonitor_daemon_state *state)
342342
data->cfar_paths_to_watch,
343343
kFSEventStreamEventIdSinceNow,
344344
0.001, flags);
345-
if (data->stream == NULL)
345+
if (!data->stream)
346346
goto failed;
347347

348348
/*

0 commit comments

Comments
 (0)