Skip to content

Commit 1c253aa

Browse files
authored
Merge pull request #3241 from dscho/fix-fsmonitor-v2-segfault
Fix segmentation fault in the FSMonitor v2 series
2 parents 04f817b + a948a53 commit 1c253aa

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)