From a94ee701de9f2f1b4fcd40f5de0fc2b83a403b26 Mon Sep 17 00:00:00 2001 From: Matthias Ringwald Date: Wed, 1 Jun 2022 09:39:31 +0200 Subject: [PATCH] libusb: fix packet log path scope --- port/libusb/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/port/libusb/main.c b/port/libusb/main.c index cb5938b536..287abea63e 100644 --- a/port/libusb/main.c +++ b/port/libusb/main.c @@ -311,8 +311,8 @@ int main(int argc, const char * argv[]){ } // log into file using HCI_DUMP_PACKETLOGGER format + char pklg_path[100]; if (log_file_path == NULL){ - char pklg_path[100]; btstack_strcpy(pklg_path, sizeof(pklg_path), "/tmp/hci_dump"); if (usb_path_len){ btstack_strcat(pklg_path, sizeof(pklg_path), "_");