* of the GNU Lesser General Public License.
*/
-#include "ucw/lib.h"
+#include <ucw/lib.h>
#include <string.h>
char *
xstrdup(const char *s)
{
- uns l = strlen(s) + 1;
+ if (!s)
+ return NULL;
+ uint l = strlen(s) + 1;
return memcpy(xmalloc(l), s, l);
}