From bf1835b13c9465de615b62f3ba5266d9d964cd55 Mon Sep 17 00:00:00 2001 From: proski Date: Wed, 2 Jul 2008 01:07:37 +0000 Subject: [PATCH] 2008-07-01 Pavel Roskin * disk/fs_uuid.c (search_fs_uuid): Correctly increment count. --- ChangeLog | 2 ++ disk/fs_uuid.c | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index a9feb9ae4..cf0ddefa4 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,7 @@ 2008-07-01 Pavel Roskin + * disk/fs_uuid.c (search_fs_uuid): Correctly increment count. + * normal/parser.y: Define YYENABLE_NLS as 0 to fix warnings. * term/tparm.c (analyze): Always set *popcount. diff --git a/disk/fs_uuid.c b/disk/fs_uuid.c index 47eb228c0..27dffc2f6 100644 --- a/disk/fs_uuid.c +++ b/disk/fs_uuid.c @@ -50,7 +50,7 @@ search_fs_uuid (const char *key, unsigned long *count) (fs->uuid) (dev, &uuid); if (grub_errno == GRUB_ERR_NONE && uuid) { - *count++; + (*count)++; if (grub_strcmp (uuid, key) == 0) {