[easytag/wip/application-window: 17/18] Remove a bogus sign check



commit c070fefb7f4918740d555593d3d5aa312298719f
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]