summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorRichard Sharpe <sharpe@samba.org>2002-12-11 07:55:44 +0000
committerRichard Sharpe <sharpe@samba.org>2002-12-11 07:55:44 +0000
commit58ea9ea4494d2690fd3dbf7ab8433209ee2b5172 (patch)
tree483d76087401bc65d611fc48217caf72874a6f04 /source3
parentf31ec23cf9c9c446b9a343c1b0a277aa7b6b6d08 (diff)
downloadsamba-58ea9ea4494d2690fd3dbf7ab8433209ee2b5172.tar.gz
samba-58ea9ea4494d2690fd3dbf7ab8433209ee2b5172.tar.bz2
samba-58ea9ea4494d2690fd3dbf7ab8433209ee2b5172.zip
Fix a small bug.
(This used to be commit 16e0a3cc0834b691fcfec75d20dfdd5fa4d0afa6)
Diffstat (limited to 'source3')
-rw-r--r--source3/utils/editreg.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/utils/editreg.c b/source3/utils/editreg.c
index 40fdd6eae9..944da3a9fa 100644
--- a/source3/utils/editreg.c
+++ b/source3/utils/editreg.c
@@ -501,7 +501,7 @@ int nt_key_iterator(REGF *regf, REG_KEY *key_tree, int bf, char *path,
if (key_tree->values &&
!nt_val_list_iterator(regf, key_tree->values, bf, new_path,
- (key_tree->values?(key_tree->values->val_count):0),
+ (key_tree->values!=NULL),
val_print)) {
free(new_path);
@@ -1298,7 +1298,7 @@ int print_key(char *path, char *name, char *class_name, int root,
int print_val(char *path, char *val_name, int val_type, int data_len,
void *data_blk, int terminal, int first, int last)
{
- if (terminal && first)
+ if (!terminal && first)
fprintf(stdout, "%s\n", path);
fprintf(stdout, " %s : %s : \n", (val_name?val_name:"<No Name>"),
val_to_str(val_type, reg_type_names));