diff options
author | Colin Ian King <colin.king@canonical.com> | 2016-04-06 15:06:48 +0200 |
---|---|---|
committer | David Howells <dhowells@redhat.com> | 2016-04-06 15:06:48 +0200 |
commit | 952cca6a724c420a1efb6025e41862dfd2c1edc3 (patch) | |
tree | 8782bbeea503ec01d2e2f2e970fb2e69a0eba8d3 /scripts/asn1_compiler.c | |
parent | assoc_array: don't call compare_object() on a node (diff) | |
download | linux-952cca6a724c420a1efb6025e41862dfd2c1edc3.tar.xz linux-952cca6a724c420a1efb6025e41862dfd2c1edc3.zip |
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) } hdr = fopen(headername, "w"); - if (!out) { + if (!hdr) { perror(headername); exit(1); } |