diff options
author | Colin Ian King <colin.king@canonical.com> | 2016-04-06 09:06:48 -0400 |
---|---|---|
committer | David Howells <dhowells@redhat.com> | 2016-04-06 09:06:48 -0400 |
commit | 952cca6a724c420a1efb6025e41862dfd2c1edc3 (patch) | |
tree | 8782bbeea503ec01d2e2f2e970fb2e69a0eba8d3 /scripts/asn1_compiler.c | |
parent | 8d4a2ec1e0b41b0cf9a0c5cd4511da7f8e4f3de2 (diff) |
ASN.1: fix open failure check on headername
The check for a failed open on headername is incorrectly checking
on the out FILE pointer rather than the hdr. Fix this.
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: David Howells <dhowells@redhat.com>
Diffstat (limited to 'scripts/asn1_compiler.c')
-rw-r--r-- | scripts/asn1_compiler.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/asn1_compiler.c b/scripts/asn1_compiler.c index e000f44e37b8..c1b7ef3e24c1 100644 --- a/scripts/asn1_compiler.c +++ b/scripts/asn1_compiler.c | |||
@@ -650,7 +650,7 @@ int main(int argc, char **argv) | |||
650 | } | 650 | } |
651 | 651 | ||
652 | hdr = fopen(headername, "w"); | 652 | hdr = fopen(headername, "w"); |
653 | if (!out) { | 653 | if (!hdr) { |
654 | perror(headername); | 654 | perror(headername); |
655 | exit(1); | 655 | exit(1); |
656 | } | 656 | } |