@@ -358,12 +358,12 @@ DLL_EXPORT_DIRTRAV int DIRTRAVFN(traverse_directory) (const DIRCHAR* directory,
358358 }
359359 memset (& info , 0 , sizeof (info ));
360360 //set directory information
361- topinfo .fullpath = info .external .fullpath ;
362- topinfo .remotehost = DIRTRAV_REMOTE_HOST_NOT_SET ;
363361 //info.external.fullname = NULL;/////TO DO
364362 info .external .fullpath = (fullpath ? fullpath : directory );
365363 //info.external.parentpath = NULL;
366364 info .external .callbackdata = callbackdata ;
365+ topinfo .fullpath = info .external .fullpath ;
366+ topinfo .remotehost = DIRTRAV_REMOTE_HOST_NOT_SET ;
367367 info .topinfo = & topinfo ;
368368 status = DIRTRAVFN (iteration )(& info , filecallback , foldercallbackbefore , foldercallbackafter , callbackdata );
369369 //clean up
@@ -769,7 +769,7 @@ DLL_EXPORT_DIRTRAV DIRCHAR* DIRTRAVFN(prop_get_ownerid) (DIRTRAVFN(entry) entry)
769769#ifdef _WIN32
770770static DIRCHAR * sid_to_username (PSID sid , const DIRCHAR * server )
771771{
772- DIRCHAR * result ;
772+ DIRCHAR * result = NULL ;
773773 SID_NAME_USE accounttype ;
774774 DIRCHAR * name ;
775775 DIRCHAR * domain ;
@@ -917,7 +917,7 @@ DLL_EXPORT_DIRTRAV DIRCHAR* DIRTRAVFN(get_remote_server_from_path) (const DIRCHA
917917#ifdef _WIN32
918918 DIRCHAR * result = NULL ;
919919 //canonicalize path
920- DIRCHAR * realpath ;
920+ DIRCHAR * realpath = NULL ;
921921 size_t len ;
922922 //determine full path
923923 if ((len = DIRWINFN (GetFullPathName )(path , 0 , NULL , NULL )) > 0 ) {
0 commit comments