Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
John McEleney
/
mailutils
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
Commit
70934b27
...
70934b2797bfef53a6fb85c131a5ec9d818dd92b
authored
2005-03-10 21:07:57 +0000
by
Sergey Poznyakoff
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
(mu_mailcap_entry_get_value): Bugfix: return ENOENT if no matching entry is found.
1 parent
28740683
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
mailbox/mailcap.c
mailbox/mailcap.c
View file @
70934b2
/* GNU Mailutils -- a suite of utilities for electronic mail
Copyright (C) 1999, 2000, 2003, 2004 Free Software Foundation, Inc.
Copyright (C) 1999, 2000, 2003, 2004
, 2005
Free Software Foundation, Inc.
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
...
...
@@ -343,11 +343,10 @@ mu_mailcap_entry_get_value (mu_mailcap_entry_t entry, const char *key,
char
*
buffer
,
size_t
buflen
,
size_t
*
pn
)
{
int
len
=
0
;
int
status
=
0
;
if
(
entry
==
NULL
)
{
status
=
EINVAL
;
}
int
status
=
ENOENT
;
if
(
!
entry
)
status
=
EINVAL
;
else
{
int
i
;
...
...
@@ -358,6 +357,7 @@ mu_mailcap_entry_get_value (mu_mailcap_entry_t entry, const char *key,
if
(
n
==
0
)
{
int
field_len
=
strlen
(
entry
->
fields
[
i
]);
status
=
0
;
if
(
field_len
>
key_len
)
{
int
c
=
entry
->
fields
[
i
][
key_len
];
...
...
Please
register
or
sign in
to post a comment