--- a/lib/libfossil.c +++ b/lib/libfossil.c @@ -27615,7 +27615,7 @@ } fsl_int_t fsl_file_size(const char *zFilename){ - fsl_fstat fst; + fsl_fstat fst = {0}; return ( 0 != fsl_stat(zFilename, &fst, 1) ) ? -1 : (fsl_int_t)fst.size; @@ -27632,7 +27632,7 @@ */ fsl_time_t fsl_file_mtime(const char *zFilename){ - fsl_fstat fst; + fsl_fstat fst = {0}; return ( 0 != fsl_stat(zFilename, &fst, 1) ) ? -1 : (fsl_time_t)fst.mtime; @@ -27640,7 +27640,7 @@ bool fsl_is_file(const char *zFilename){ - fsl_fstat fst; + fsl_fstat fst = {0}; return ( 0 != fsl_stat(zFilename, &fst, 1) ) ? false : (FSL_FSTAT_TYPE_FILE == fst.type); @@ -27651,7 +27651,7 @@ if(zFilename){/*unused var*/} return false; #else - fsl_fstat fst; + fsl_fstat fst = {0}; return (0 == fsl_stat(zFilename, &fst, 0)) ? (FSL_FSTAT_TYPE_LINK == fst.type) : false; @@ -28191,7 +28191,7 @@ } int fsl_dir_check(const char *zFilename){ - fsl_fstat fst; + fsl_fstat fst = {0}; int rc; if( zFilename ){ #if 1 @@ -31562,7 +31562,7 @@ if(0==rc) rc = fsl_stmt_get_text(&q, 1, &zName, NULL); if(0==rc) rc = fsl_buffer_appendf(bFullName, "%s%s", f->ckout.dir, zName); if(rc) goto merge_add_end; - fsl_merge_fchange_e fchange; + fsl_merge_fchange_e fchange = 0; if( fsl_is_file_or_link(fsl_buffer_cstr(bFullName)) && !fsl_db_exists(db, "SELECT 1 FROM fv WHERE fn=%Q", zName) ){ if(opt->debug){