changeset 1563:e9ba8c538734

Fix sign error in time zone offset printing Coverity CID 349432
author Thomas Klausner <wiz@gatalith.at>
date Tue, 22 Jun 2021 21:07:13 +0200
parents 6219359a36a9
children a3da9370c03f
files libfdproto/dictionary_functions.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libfdproto/dictionary_functions.c	Mon Jun 21 19:08:18 2021 +0800
+++ b/libfdproto/dictionary_functions.c	Tue Jun 22 21:07:13 2021 +0200
@@ -314,7 +314,7 @@
     int offs_hours, offs_minutes, sgn = 1;
     if (offset < 0) {
         offset = -offset;
-        sgn = 1;
+        sgn = -1;
     }
     offs_hours = (int)(offset/3600);
     offs_minutes = (offset%3600)/60;
"Welcome to our mercurial repository"