summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
ee7304b)
Rocco Rutte:
- make our own str_dup() return copy of "" (=="\0") if called with "" (fixes at least one crash in f=f handler which assumes that a copy of "" returns !=NULL)
git-svn-id: svn://svn.berlios.de/mutt-ng/trunk@797
e385b8ad-14ed-0310-8656-
cc95a2468c6d
- if (!s || !*s)
- return 0;
l = str_len (s) + 1;
p = (char *) mem_malloc (l);
memcpy (p, s, l);
l = str_len (s) + 1;
p = (char *) mem_malloc (l);
memcpy (p, s, l);