Ethereal-dev: [Ethereal-dev] |patch] proto.c use the wrong pointer in error msg.

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: didier <dgautheron@xxxxxxxx>
Date: Sun, 08 Jan 2006 14:36:56 +0000
Hi,

Didier
Index: epan/proto.c
===================================================================
--- epan/proto.c	(revision 16977)
+++ epan/proto.c	(working copy)
@@ -3161,7 +3161,7 @@
 		if (*ptr->p_id != -1 && *ptr->p_id != 0) {
 			fprintf(stderr,
 			    "Duplicate field detected in call to proto_register_field_array: %s is already registered\n",
-			    hf->hfinfo.abbrev);
+			    ptr->hfinfo.abbrev);
 			return;
 		}