More ALG,KEY,MI 'fixes'

Only assign and print when err == 0
This commit is contained in:
lwvmobile
2022-02-26 07:59:24 -05:00
committed by GitHub
parent 7a341fa1c9
commit f6fdbfa922
3 changed files with 23 additions and 11 deletions

View File

@@ -242,10 +242,12 @@ closeMbeOutFile (dsd_opts * opts, dsd_state * state)
strftime (datestr, 31, "%Y-%m-%d-%H%M%S", &timep);
sprintf (newfilename, "%s%s", datestr, ext); //this one
if (state->lastsynctype == 0 || state->lastsynctype == 1)
{
sprintf (newfilename, "%s-nac%X-tg%i%s", datestr, state->nac, talkgroup, ext);
}
sprintf (new_path, "%s%s", opts->mbe_out_dir, newfilename);
#ifdef _WIN32
sprintf (shell, "move %s %s", opts->mbe_out_path, new_path);