Merge pull request #1342 from HowJMay/remove_redundant_reset
Remove redundant initialization in clients
This commit is contained in:
commit
1079a1b697
@ -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){
|
||||
|
@ -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);
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user