File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -376,7 +376,7 @@ TDNFDownloadPackage(
376376 uint32_t dwError = 0 ;
377377 char * pszPackageFile = NULL ;
378378 char * pszCopyOfPackageLocation = NULL ;
379- int nSize ;
379+ int nSize = 0 ;
380380
381381 if (!pTdnf ||
382382 !pTdnf -> pArgs ||
Original file line number Diff line number Diff line change @@ -783,7 +783,7 @@ TDNFTransAddInstallPkg(
783783 const char * pszPkgName = NULL ;
784784 uint8_t digest_from_file [EVP_MAX_MD_SIZE ] = {0 };
785785 hash_op * hash = NULL ;
786- int nSize ;
786+ int nSize = 0 ;
787787
788788 if (!pTS || !pTdnf || !pInfo || !pRepo )
789789 {
@@ -942,7 +942,7 @@ TDNFTransAddInstallPkg(
942942 return dwError ;
943943
944944error :
945- pr_err ("Error processing package: %s\n" , pszPackageLocation );
945+ pr_err ("Error processing package: %s\n" , pszPackageLocation ? pszPackageLocation : "(null)" );
946946 TDNF_SAFE_FREE_MEMORY (pszFilePath );
947947 TDNF_SAFE_FREE_MEMORY (pRpmCache );
948948 goto cleanup ;
You can’t perform that action at this time.
0 commit comments