[easytag] Remove a bogus sign check



commit 2ab505068d708a1a81775df558fdcfc42612dceb
Author: David King <amigadave amigadave com>
Date:   Tue Feb 11 19:05:44 2014 +0000

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

 src/scan.c |   12 ------------
 1 files changed, 0 insertions(+), 12 deletions(-)
---
diff --git a/src/scan.c b/src/scan.c
index 3e210e1..1a0bf52 100644
--- a/src/scan.c
+++ b/src/scan.c
@@ -1968,18 +1968,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]