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
73ac79ed
...
73ac79ed1184440e75bd982560387636553aae23
authored
2001-09-19 02:42:33 +0000
by
Sam Roberts
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Set zero-length strings to NULL.
1 parent
9c8700e4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletions
mailbox/url.c
mailbox/url.c
View file @
73ac79e
...
...
@@ -170,9 +170,12 @@ url_parse (url_t url)
#define UALLOC(X) \
if(u.X && (url->X = url_decode(u.X)) == 0) { \
if(u.X &&
u.X[0] &&
(url->X = url_decode(u.X)) == 0) { \
err = ENOMEM; \
goto CLEANUP; \
} else { \
/* Set zero-length strings to NULL. */
\
u.X = NULL; \
}
UALLOC
(
scheme
)
...
...
Please
register
or
sign in
to post a comment