[easytag/wip/application-window: 17/18] Remove a bogus sign check
- From: David King <davidk src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [easytag/wip/application-window: 17/18] Remove a bogus sign check
- Date: Sat, 8 Feb 2014 11:27:43 +0000 (UTC)
commit 7074101a8fcadc179b6d8657d868dc4c61df416d
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]