diff options
author | Kamil Dudka <kdudka@redhat.com> | 2021-04-19 15:10:48 +0200 |
---|---|---|
committer | Andreas Gruenbacher <agruenba@redhat.com> | 2021-04-19 15:12:44 +0200 |
commit | 8d7fa4cc89713e3e98afeec7cc6f1002855d4ac3 (patch) | |
tree | 1192f121e503af6af3c10879c062c026ebd99b3b | |
parent | fb7e6bacbd9c7b1b9c452b7356a3d5e5a6163366 (diff) | |
download | attr-8d7fa4cc89713e3e98afeec7cc6f1002855d4ac3.tar.gz |
attr: eliminate a dead store in attr_copy_action()
... reported by clang:
libattr/attr_copy_action.c:158:22: warning[deadcode.DeadStores]: Value stored to 'action' during its initialization is never read
-rw-r--r-- | libattr/attr_copy_action.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/libattr/attr_copy_action.c b/libattr/attr_copy_action.c index 279f2df..d41dd2e 100644 --- a/libattr/attr_copy_action.c +++ b/libattr/attr_copy_action.c @@ -155,9 +155,8 @@ fail: int attr_copy_action(const char *name, struct error_context *ctx) { - struct attr_action *action = attr_actions; - if (!attr_parse_attr_conf(ctx)) { + struct attr_action *action; for (action = attr_actions; action; action = action->next) { if (!fnmatch(action->pattern, name, 0)) return action->action; |