Index: sam/idmap_rid.c =================================================================== --- sam/idmap_rid.c (revision 5277) +++ sam/idmap_rid.c (working copy) @@ -49,12 +49,13 @@ { const char *p; int i; - trust.number = 0; fstring sid_str; BOOL known_domain = False; p = init_param; fstring tok; + trust.number = 0; + /* falling back to automatic mapping when there were no options given */ if (!*init_param) {