mirror of
https://bitbucket.org/smil3y/kdelibs.git
synced 2025-02-23 18:32:49 +00:00
kioslave: CodeQL warning fix
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
e0cbdd94f3
commit
c91cef75ef
1 changed files with 5 additions and 0 deletions
|
@ -1782,7 +1782,12 @@ bool Ftp::ftpReadDir(FtpEntry& de)
|
|||
|
||||
// First get current time - we need the current month and year
|
||||
time_t currentTime = time( 0L );
|
||||
#ifdef _POSIX_THREAD_SAFE_FUNCTIONS
|
||||
struct tm tmpres;
|
||||
struct tm * tmptr = gmtime_r(¤tTime, &tmpres);
|
||||
#else
|
||||
struct tm * tmptr = gmtime( ¤tTime );
|
||||
#endif
|
||||
int currentMonth = tmptr->tm_mon;
|
||||
//kDebug(7102) << "Current time :" << asctime( tmptr );
|
||||
// Reset time fields
|
||||
|
|
Loading…
Add table
Reference in a new issue