diff options
author | Eric S. Raymond <esr@thyrsus.com> | 1997-05-15 20:12:53 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 1997-05-15 20:12:53 +0000 |
commit | dea547a71036ae3445a5a612f6afd00b76ed721a (patch) | |
tree | 21526ebcd03d92a894cdb61b36d33ae56b8c5684 /uid.c | |
parent | 3dd9a93bd23e0ad36e52ffd79efe2dcbdaf85272 (diff) | |
download | fetchmail-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.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 |