[easytag/wip/application-window: 26/27] Remove a bogus sign check



commit 3ecab4b0bd3e85e76f4156f0e7b3e016a9555b0d
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 12b3ba9..1b21783 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]