TIME: malloc and HHmmss Nits; Remove Unneeded time/date strings from Ncurses;

This commit is contained in:
lwvmobile
2024-04-25 11:27:26 -04:00
parent ab9a9ddab3
commit 9da8544408
2 changed files with 9 additions and 13 deletions

View File

@@ -32,8 +32,6 @@ static char alias_ch[10][50];
int reset = 0;
char * timestr;
char * datestr;
char * timestrC;
char * datestrH;
int tg;
int tgR;
int tgn;
@@ -1955,9 +1953,9 @@ ncursesPrinter (dsd_opts * opts, dsd_state * state)
timestr = getTime();
datestr = getDate();
//for display
timestrC = getTimeC();
datestrH = getDateH();
//NOTE: Any times associates with call history are stored
//in the array and need to be set by passing those values into
//getTimeN and getDateN
if (opts->audio_in_type != 1) //can't run getch/menu when using STDIN -
{
@@ -4846,8 +4844,6 @@ ncursesPrinter (dsd_opts * opts, dsd_state * state)
//allocated memory pointer needs to be free'd
if (timestr != NULL) free (timestr);
if (datestr != NULL) free (datestr);
if (timestrC != NULL) free (timestrC);
if (datestrH != NULL) free (datestrH);
} //end ncursesPrinter