mirror of
https://github.com/Proxmark/proxmark3.git
synced 2025-08-22 22:23:38 -07:00
small fix
This commit is contained in:
parent
4af40c00d4
commit
715fdbffcd
1 changed files with 1 additions and 0 deletions
|
@ -127,6 +127,7 @@ void main_loop(char *script_cmds_file, char *script_cmd, bool usb_present) {
|
||||||
// If there is a script file
|
// If there is a script file
|
||||||
if (script_file)
|
if (script_file)
|
||||||
{
|
{
|
||||||
|
memset(script_cmd_buf, 0, sizeof(script_cmd_buf));
|
||||||
if (!fgets(script_cmd_buf, sizeof(script_cmd_buf), script_file)) {
|
if (!fgets(script_cmd_buf, sizeof(script_cmd_buf), script_file)) {
|
||||||
fclose(script_file);
|
fclose(script_file);
|
||||||
script_file = NULL;
|
script_file = NULL;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue