aboutsummaryrefslogtreecommitdiffstats
path: root/uid.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>1997-05-15 20:12:53 +0000
committerEric S. Raymond <esr@thyrsus.com>1997-05-15 20:12:53 +0000
commitdea547a71036ae3445a5a612f6afd00b76ed721a (patch)
tree21526ebcd03d92a894cdb61b36d33ae56b8c5684 /uid.c
parent3dd9a93bd23e0ad36e52ffd79efe2dcbdaf85272 (diff)
downloadfetchmail-dea547a71036ae3445a5a612f6afd00b76ed721a.tar.gz
fetchmail-dea547a71036ae3445a5a612f6afd00b76ed721a.tar.bz2
fetchmail-dea547a71036ae3445a5a612f6afd00b76ed721a.zip
Add multiple-folder support.
svn path=/trunk/; revision=1012
Diffstat (limited to 'uid.c')
-rw-r--r--uid.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/uid.c b/uid.c
index e6fa1b26..c531915a 100644
--- a/uid.c
+++ b/uid.c
@@ -112,7 +112,7 @@ struct idlist *save_str(struct idlist **idl, int num, const char *str)
*end = (struct idlist *)xmalloc(sizeof(struct idlist));
(*end)->val.num = num;
- (*end)->id = xstrdup(str);
+ (*end)->id = str ? xstrdup(str) : (char *)NULL;
(*end)->next = NULL;
return(*end);
@@ -140,7 +140,7 @@ void save_str_pair(struct idlist **idl, const char *str1, const char *str2)
continue;
*end = (struct idlist *)xmalloc(sizeof(struct idlist));
- (*end)->id = xstrdup(str1);
+ (*end)->id = str1 ? xstrdup(str1) : (char *)NULL;
if (str2)
(*end)->val.id2 = xstrdup(str2);
else