fixup! fsmonitor-ipc: create client routines for git-fsmonitor--daemon

If there is no current token, we should not segfault.

Such a situation can arise e.g. in an auto-stashing rebase, after the
autostash was applied.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
This commit is contained in:
Johannes Schindelin
2021-05-28 17:43:42 +02:00
parent 04f817b0ac
commit a948a53300

View File

@@ -53,7 +53,7 @@ try_again:
switch (state) {
case IPC_STATE__LISTENING:
ret = ipc_client_send_command_to_connection(
connection, since_token, strlen(since_token), answer);
connection, since_token, since_token ? strlen(since_token) : 0, answer);
ipc_client_close_connection(connection);
trace2_data_intmax("fsm_client", NULL,