libtnccs: Don't try to load IMCs/IMVs from a file if there is no filename

This commit is contained in:
Tobias Brunner 2013-04-24 15:27:31 +02:00
parent ad39ce314b
commit 82aceeb151
1 changed files with 5 additions and 0 deletions

View File

@ -100,6 +100,11 @@ static bool load_imcvs_from_config(char *filename, bool is_imc)
void *addr;
char *label;
if (!filename || !*filename)
{
return TRUE;
}
label = is_imc ? "IMC" : "IMV";
DBG1(DBG_TNC, "loading %ss from '%s'", label, filename);