Skip to content

Commit

Permalink
Merge pull request #385 from jeffhostetler/redo-fsmonitor-null-last-u…
Browse files Browse the repository at this point in the history
…pdate

Redo fixup for null fsmonitor_last_update
  • Loading branch information
jeffhostetler authored Jun 21, 2021
2 parents 166bb2c + 84c35ff commit 1f321cd
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions fsmonitor.c
Original file line number Diff line number Diff line change
Expand Up @@ -290,9 +290,10 @@ void refresh_fsmonitor(struct index_state *istate)
trace_printf_key(&trace_fsmonitor, "refresh fsmonitor");

if (r->settings.use_builtin_fsmonitor > 0) {
query_success = istate->fsmonitor_last_update &&
!fsmonitor_ipc__send_query(istate->fsmonitor_last_update,
&query_result);
query_success = !fsmonitor_ipc__send_query(
istate->fsmonitor_last_update ?
istate->fsmonitor_last_update : "builtin:fake",
&query_result);
if (query_success) {
/*
* The response contains a series of nul terminated
Expand Down

0 comments on commit 1f321cd

Please sign in to comment.