Skip to content

Commit d79720b

Browse files
committed
fix minor warnings
Signed-off-by: Oliver Kurth <[email protected]>
1 parent bd35bb1 commit d79720b

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

client/remoterepo.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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 ||

client/rpmtrans.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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

944944
error:
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;

0 commit comments

Comments
 (0)