chg: [pibs] check redis parameters

master
Gerard Wagener 2019-02-11 14:36:53 +01:00
parent e8c3631c96
commit 34e3e908da
1 changed files with 4 additions and 1 deletions

View File

@ -476,7 +476,10 @@ int main(int argc, char* argv[])
} }
if (pibs->uuid[0]) { if (pibs->uuid[0]) {
snprintf(pibs->key, SZKEY, "analyzer:1:%s",pibs->uuid); snprintf(pibs->key, SZKEY, "analyzer:1:%s",pibs->uuid);
printf("key: %s\n", pibs->key); if ((pibs->server[0] == 0) || (pibs->port == 0)) {
fprintf(stderr,"Redis parameter server and port are incomplete. Use -z and -p options.\n");
return EXIT_FAILURE;
}
} }
if (pibs->filename[0]) { if (pibs->filename[0]) {
process_file(pibs); process_file(pibs);