gpgscm: Guard use of union member.
authorJustus Winter <justus@g10code.com>
Wed, 21 Dec 2016 15:14:45 +0000 (16:14 +0100)
committerJustus Winter <justus@g10code.com>
Wed, 21 Dec 2016 15:14:45 +0000 (16:14 +0100)
commit6e96cdd41a0e55b672309431062f37c4a4a9f485
treed08074ca79180177c2e1eafedb3c82262236f8bd
parent6204f8104fea42d706a68e77e2dc0bca4704bddc
gpgscm: Guard use of union member.

* tests/gpgscm/scheme.c (opexe_5): Check that we have a file port
before accessing filename.  Fixes a crash on 32-bit architectures.

Fixes-commit: e7429b1ced0c69fa7901f888f8dc25f00fc346a4
Signed-off-by: Justus Winter <justus@g10code.com>
tests/gpgscm/scheme.c