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
695f2c70
...
695f2c707ba10fd67f2170c55112874ca5ad48c0
authored
2001-06-25 09:25:34 +0000
by
Sergey Poznyakoff
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fixed install part of alias_lookup_or_install()
1 parent
f4a0c376
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
mail/alias.c
mail/alias.c
View file @
695f2c7
...
...
@@ -120,6 +120,7 @@ alias_t *
alias_lookup_or_install
(
char
*
name
,
int
install
)
{
unsigned
i
,
pos
;
alias_t
*
slot
=
NULL
;
if
(
!
aliases
)
{
...
...
@@ -138,8 +139,8 @@ alias_lookup_or_install(char *name, int install)
{
if
(
aliases
[
i
].
name
==
NULL
)
{
if
(
install
)
return
&
aliases
[
i
];
if
(
!
slot
&&
install
)
slot
=
&
aliases
[
i
];
}
else
if
(
strcmp
(
aliases
[
i
].
name
,
name
)
==
0
)
return
&
aliases
[
i
];
...
...
@@ -152,6 +153,9 @@ alias_lookup_or_install(char *name, int install)
if
(
!
install
)
return
NULL
;
if
(
slot
)
return
slot
;
if
(
alias_rehash
())
return
NULL
;
...
...
Please
register
or
sign in
to post a comment