Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Petr Menšík
BIND
Commits
27f8e3bf
Commit
27f8e3bf
authored
Nov 22, 2000
by
Bob Halley
Browse files
comp was set from the wrong argv value
parent
292ef406
Changes
1
Hide whitespace changes
Inline
Side-by-side
bin/tests/name_test.c
View file @
27f8e3bf
...
...
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
/* $Id: name_test.c,v 1.3
1
2000/
08/01
0
1
:1
3:02 tale
Exp $ */
/* $Id: name_test.c,v 1.3
2
2000/
11/22
0
0
:1
4: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
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment