Commit 27f8e3bf authored by Bob Halley's avatar Bob Halley
Browse files

comp was set from the wrong argv value

parent 292ef406
......@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
/* $Id: name_test.c,v 1.31 2000/08/01 01:13:02 tale Exp $ */
/* $Id: name_test.c,v 1.32 2000/11/22 00:14:55 halley Exp $ */
#include <config.h>
......@@ -143,11 +143,11 @@ main(int argc, char *argv[]) {
origin = dns_rootname;
if (argc >= 1) {
if (strcasecmp("none", argv[0]) == 0)
if (strcasecmp("none", argv[1]) == 0)
comp = NULL;
else {
len = strlen(argv[0]);
isc_buffer_init(&source, argv[0], len);
len = strlen(argv[1]);
isc_buffer_init(&source, argv[1], len);
isc_buffer_add(&source, len);
dns_fixedname_init(&compname);
comp = &compname.name;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment