[pacman-dev] [PATCH 2/6] hook.c: print invalid option name

Andrew Gregory andrew.gregory.8 at gmail.com
Tue Oct 27 04:47:31 UTC 2015


Signed-off-by: Andrew Gregory <andrew.gregory.8 at gmail.com>
---
 lib/libalpm/hook.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/libalpm/hook.c b/lib/libalpm/hook.c
index c7b4ee8..463b76a 100644
--- a/lib/libalpm/hook.c
+++ b/lib/libalpm/hook.c
@@ -210,7 +210,7 @@ static int _alpm_hook_parse_cb(const char *file, int line,
 		} else if(strcmp(key, "Exec") == 0) {
 			STRDUP(hook->cmd, value, return 1);
 		} else {
-			error(_("hook %s line %d: invalid option %s\n"), file, line, value);
+			error(_("hook %s line %d: invalid option %s\n"), file, line, key);
 		}
 	}
 
-- 
2.6.2


More information about the pacman-dev mailing list