mirror of
https://github.com/git-for-windows/git.git
synced 2026-03-16 19:41:56 -05:00
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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user