Skip to content

Commit a948a53

Browse files
committed
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 <[email protected]>
1 parent 04f817b commit a948a53

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fsmonitor-ipc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ int fsmonitor_ipc__send_query(const char *since_token,
5353
switch (state) {
5454
case IPC_STATE__LISTENING:
5555
ret = ipc_client_send_command_to_connection(
56-
connection, since_token, strlen(since_token), answer);
56+
connection, since_token, since_token ? strlen(since_token) : 0, answer);
5757
ipc_client_close_connection(connection);
5858

5959
trace2_data_intmax("fsm_client", NULL,

0 commit comments

Comments
 (0)