Merge pull request #1342 from HowJMay/remove_redundant_reset

Remove redundant initialization in clients
pull/1364/head
Roger Light 6 years ago committed by GitHub
commit 1079a1b697
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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){

@ -252,8 +252,6 @@ int main(int argc, char *argv[])
#ifndef WIN32
struct sigaction sigact;
#endif
memset(&cfg, 0, sizeof(struct mosq_config));
mosquitto_lib_init();

@ -278,8 +278,6 @@ int main(int argc, char *argv[])
#ifndef WIN32
struct sigaction sigact;
#endif
memset(&cfg, 0, sizeof(struct mosq_config));
mosquitto_lib_init();

Loading…
Cancel
Save