ash: [EVAL] Avoid using undefined handler
authorDenys Vlasenko <vda.linux@googlemail.com>
Fri, 30 Sep 2016 09:30:11 +0000 (11:30 +0200)
committerDenys Vlasenko <vda.linux@googlemail.com>
Fri, 30 Sep 2016 09:30:11 +0000 (11:30 +0200)
commita2d121cc1bb8ef391f9171bb3799e1572904d74c
treea73704fff2dfa0eb7b70a2697164a42c32bcb08f
parent53d6e03a0acb31cdb5c6e5679cf8a9ddd8c09ba5
ash: [EVAL] Avoid using undefined handler

Upstream commit:

    Date: Fri, 8 Jul 2011 16:41:24 +0800
    [EVAL] Avoid using undefined handler

    * src/eval.c (evalbltin, evalfun): Set savehandler before calling
    setjmp with the possible "goto *done", where savehandler is used.
    Otherwise, clang warns that "Assigned value is garbage or undefined"
    at the point where "savehandler" is used on the RHS.

Signed-off-by: Jim Meyering <meyering@redhat.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
shell/ash.c