efibootmgr/0010-Fix-typo-in-compare-function.patch

27 lines
751 B
Diff
Raw Normal View History

From 78920cfc3828389cb61de4ca06bf70d6fa959c0d Mon Sep 17 00:00:00 2001
From: Daniel Jared Dominguez <Jared_Dominguez@Dell.com>
Date: Mon, 7 Jul 2014 14:02:22 -0500
Subject: [PATCH 10/22] Fix typo in compare function.
Signed-off-by: Daniel Jared Dominguez <Jared_Dominguez@Dell.com>
---
src/efibootmgr/efibootmgr.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/efibootmgr/efibootmgr.c b/src/efibootmgr/efibootmgr.c
index 03613ab..a59d071 100644
--- a/src/efibootmgr/efibootmgr.c
+++ b/src/efibootmgr/efibootmgr.c
@@ -149,7 +149,7 @@ compare(const void *a, const void *b)
memcpy(&n2, b, sizeof(n2));
if (n1 < n2) rc = -1;
if (n1 == n2) rc = 0;
- if (n2 > n2) rc = 1;
+ if (n1 > n2) rc = 1;
return rc;
}
--
1.9.3