Merge pull request #1342 from HowJMay/remove_redundant_reset

Remove redundant initialization in clients
This commit is contained in:
Roger Light 2019-08-01 09:59:52 +01:00 committed by GitHub
commit 1079a1b697
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 0 additions and 5 deletions

View File

@ -445,7 +445,6 @@ int main(int argc, char *argv[])
if(pub_shared_init()) return 1;
memset(&cfg, 0, sizeof(struct mosq_config));
rc = client_config_load(&cfg, CLIENT_PUB, argc, argv);
if(rc){
if(rc == 2){

View File

@ -253,8 +253,6 @@ int main(int argc, char *argv[])
struct sigaction sigact;
#endif
memset(&cfg, 0, sizeof(struct mosq_config));
mosquitto_lib_init();
rc = client_config_load(&cfg, CLIENT_RR, argc, argv);

View File

@ -279,8 +279,6 @@ int main(int argc, char *argv[])
struct sigaction sigact;
#endif
memset(&cfg, 0, sizeof(struct mosq_config));
mosquitto_lib_init();
rc = client_config_load(&cfg, CLIENT_SUB, argc, argv);