Quellcode durchsuchen

Fixed bug reported by Jiri.

Jan Janak vor 22 Jahren
Ursprung
Commit
ddda1e101d
2 geänderte Dateien mit 2 neuen und 1 gelöschten Zeilen
  1. 0 1
      parser/contact/contact.c
  2. 2 0
      parser/parse_param.c

+ 0 - 1
parser/contact/contact.c

@@ -171,7 +171,6 @@ int parse_contacts(str* _s, contact_t** _c)
 
 			c->q = hooks.contact.q;
 			c->expires = hooks.contact.expires;
-			c->expires = hooks.contact.expires;
 			c->method = hooks.contact.method;
 
 			if (_s->len == 0) goto ok;

+ 2 - 0
parser/parse_param.c

@@ -288,6 +288,8 @@ int parse_params(str* _s, pclass_t _c, param_hooks_t* _h, param_t** _p)
 		return -1;
 	}
 
+	memset(_h, 0, sizeof(param_hooks_t));
+
 	while(1) {
 		t = (param_t*)pkg_malloc(sizeof(param_t));
 		if (t == 0) {