summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Sharpe <sharpe@samba.org>2002-11-15 22:55:15 +0000
committerRichard Sharpe <sharpe@samba.org>2002-11-15 22:55:15 +0000
commit7b581a60d2cc16500c5f54af3217d261d68646b5 (patch)
tree19fe3a8a022537c6113c707065519f8acf30b31e
parentb45c92f31ea0442d623ac2d92dcd97215c1ed481 (diff)
downloadsamba-7b581a60d2cc16500c5f54af3217d261d68646b5.tar.gz
samba-7b581a60d2cc16500c5f54af3217d261d68646b5.tar.bz2
samba-7b581a60d2cc16500c5f54af3217d261d68646b5.zip
One more small fix in tree.c
(This used to be commit 0674d5a2b0f7ee621940c93b3b58960efd91a763)
-rw-r--r--examples/libsmbclient/tree.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/libsmbclient/tree.c b/examples/libsmbclient/tree.c
index f357c0306d..8dc9cc408b 100644
--- a/examples/libsmbclient/tree.c
+++ b/examples/libsmbclient/tree.c
@@ -745,8 +745,6 @@ int main( int argc,
/* Now, get the items in smb:/// and add them to the tree */
- dirp = (struct smbc_dirent *)dirbuf;
-
while ((err = smbc_getdents(dh, (struct smbc_dirent *)dirbuf,
sizeof(dirbuf))) != 0) {
@@ -759,6 +757,8 @@ int main( int argc,
}
+ dirp = (struct smbc_dirent *)dirbuf;
+
fprintf(stdout, "Dir len: %u\n", err);
while (err > 0) { /* Extract each entry and make a sub-tree */