Hi !
>> char *res = crypt(clear, salt);
>> if (!res)
>> res = "";
>> return xstrdup(res);
>Yes, previously crypt returned an empty string like that. Though
>that will throw a warning about assigning a const char to char,
>something similar would work.
Why not ... ?
char *res = crypt(clear, salt);
return xstrdup(res ? res : "");
... this shall avoid the warning.
--
Harald
_______________________________________________
busybox mailing list
[email protected]
http://lists.busybox.net/mailman/listinfo/busybox