[yelp] Avoid warning due to unnecessary comparison
- From: David King <davidk src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [yelp] Avoid warning due to unnecessary comparison
- Date: Mon, 9 Feb 2015 23:36:57 +0000 (UTC)
commit 0c714faf02b2c276208184c14be10026a508c480
Author: David King <amigadave amigadave com>
Date: Mon Feb 9 21:42:41 2015 +0000
Avoid warning due to unnecessary comparison
libyelp/yelp-man-parser.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/libyelp/yelp-man-parser.c b/libyelp/yelp-man-parser.c
index 1466d10..508487c 100644
--- a/libyelp/yelp-man-parser.c
+++ b/libyelp/yelp-man-parser.c
@@ -1050,7 +1050,7 @@ right_truncate_common (gchar *dst, const gchar *src)
dst += len_dst - 1;
src += len_src - 1;
- while (k >= 0) {
+ while (k > 0) {
if (*dst != *src) break;
*dst = '\0';
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]