Skip to content

Commit

Permalink
redundant condition.
Browse files Browse the repository at this point in the history
  • Loading branch information
jfdelnero committed Nov 17, 2023
1 parent a14ee2e commit c9a4a13
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions lib_jtag_core/src/script/env.c
Original file line number Diff line number Diff line change
Expand Up @@ -46,15 +46,8 @@ static int stringcopy(char * dst, char * src, unsigned int maxsize)

if( !src )
{
if(maxsize)
{
*dst = '\0';
return 1;
}
else
{
return 0;
}
*dst = '\0';
return 1;
}

s = 0;
Expand Down

0 comments on commit c9a4a13

Please sign in to comment.