Browse code

core: safety check accessing variables in dbg message during fixup operation

Daniel-Constantin Mierla authored on 21/04/2014 15:57:09
Showing 1 changed files
... ...
@@ -538,8 +538,8 @@ static int fix_match(struct action* t)
538 538
 			if (default_found){
539 539
 				LOG(L_ERR, "ERROR: fix_match: more then one \"default\""
540 540
 						" label found (%d, %d)\n",
541
-						c->ct_rve->fpos.s_line,
542
-						c->ct_rve->fpos.s_col);
541
+						(c->ct_rve)?c->ct_rve->fpos.s_line:0,
542
+						(c->ct_rve)?c->ct_rve->fpos.s_col:0);
543 543
 				ret=E_UNSPEC;
544 544
 				goto error;
545 545
 			}