[easytag/wip/application-window: 23/25] Remove a bogus sign check



commit 6bbe8ebfedeb2858461c06d855e4f46e4025945d
Author: David King <amigadave amigadave com>
Date:   Mon Feb 3 16:31:12 2014 +0000

    Remove a bogus sign check
    
    Found with Coverity (CID 1163351).

 src/scan_dialog.c |   12 ------------
 1 files changed, 0 insertions(+), 12 deletions(-)
---
diff --git a/src/scan_dialog.c b/src/scan_dialog.c
index bdfe677..519afaf 100644
--- a/src/scan_dialog.c
+++ b/src/scan_dialog.c
@@ -1457,18 +1457,6 @@ int2roman_r (int num, char * str, size_t len)
       return str;
    };
 
-   // calculates sign
-   if (num < 0)
-   {
-      num *= -1;
-      if (1 > len)
-      {
-         return NULL;
-      };
-      str[pos] = '-';
-      pos++;
-   };
-
    // calculates thousands
    dividend = num/1000;
    if (dividend > (len-1))


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]