Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:Ledest:erlang:23
erlang
0284-asn1-Fix-silly-matching-bug.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0284-asn1-Fix-silly-matching-bug.patch of Package erlang
From 3670b8fa56db45e947251f5da5cd5a2289e83140 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?John=20H=C3=B6gberg?= <john@erlang.org> Date: Fri, 22 Jan 2021 13:18:37 +0100 Subject: [PATCH 04/10] asn1: Fix silly matching bug We shouldn't crash if the errors happen to differ. --- lib/asn1/src/asn1ct.erl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/asn1/src/asn1ct.erl b/lib/asn1/src/asn1ct.erl index e3ea96bb2f..b84fdd0f04 100644 --- a/lib/asn1/src/asn1ct.erl +++ b/lib/asn1/src/asn1ct.erl @@ -1016,11 +1016,11 @@ input_file_type(File) -> case file:read_file_info(lists:concat([File,".asn1"])) of {ok,_FileInfo} -> {single_file, lists:concat([File,".asn1"])}; - _Error -> + _ -> case file:read_file_info(lists:concat([File,".asn"])) of {ok,_FileInfo} -> {single_file, lists:concat([File,".asn"])}; - _Error -> + _ -> case file:read_file_info(lists:concat([File,".py"])) of {ok,_FileInfo} -> {single_file, lists:concat([File,".py"])}; -- 2.26.2
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor