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;
|
if(pub_shared_init()) return 1;
|
||||||
|
|
||||||
memset(&cfg, 0, sizeof(struct mosq_config));
|
|
||||||
rc = client_config_load(&cfg, CLIENT_PUB, argc, argv);
|
rc = client_config_load(&cfg, CLIENT_PUB, argc, argv);
|
||||||
if(rc){
|
if(rc){
|
||||||
if(rc == 2){
|
if(rc == 2){
|
||||||
|
@ -252,8 +252,6 @@ int main(int argc, char *argv[])
|
|||||||
#ifndef WIN32
|
#ifndef WIN32
|
||||||
struct sigaction sigact;
|
struct sigaction sigact;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
memset(&cfg, 0, sizeof(struct mosq_config));
|
|
||||||
|
|
||||||
mosquitto_lib_init();
|
mosquitto_lib_init();
|
||||||
|
|
||||||
|
@ -278,8 +278,6 @@ int main(int argc, char *argv[])
|
|||||||
#ifndef WIN32
|
#ifndef WIN32
|
||||||
struct sigaction sigact;
|
struct sigaction sigact;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
memset(&cfg, 0, sizeof(struct mosq_config));
|
|
||||||
|
|
||||||
mosquitto_lib_init();
|
mosquitto_lib_init();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user