From: Eunki, Hong Date: Tue, 28 Nov 2023 02:44:48 +0000 (+0900) Subject: [Tizen] Print warning message when download size is zero X-Git-Tag: accepted/tizen/8.0/unified/20231130.180817~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F72%2F302072%2F1;p=platform%2Fcore%2Fuifw%2Fdali-adaptor.git [Tizen] Print warning message when download size is zero Change-Id: If65c03869d5cf841682af60d8a3c3cd9024b3656 Signed-off-by: Eunki, Hong --- diff --git a/dali/internal/imaging/common/file-download.cpp b/dali/internal/imaging/common/file-download.cpp index 47efd49..bd3a780 100644 --- a/dali/internal/imaging/common/file-download.cpp +++ b/dali/internal/imaging/common/file-download.cpp @@ -353,6 +353,10 @@ bool DownloadFile(CURL* curlHandle, { return false; } + else if(DALI_UNLIKELY(dataSize == 0u)) + { + DALI_LOG_WARNING("Warning : Download data size is 0! url : %s\n", url.c_str()); + } return true; }