This commit is contained in:
FuGangqiang
2015-05-04 13:03:01 +02:00
committed by antirez
parent 6637862838
commit 35d71b1ffc
+1 -1
View File
@@ -71,7 +71,7 @@ sds sdsempty(void) {
return sdsnewlen("",0);
}
/* Create a new sds string starting from a null termined C string. */
/* Create a new sds string starting from a null terminated C string. */
sds sdsnew(const char *init) {
size_t initlen = (init == NULL) ? 0 : strlen(init);
return sdsnewlen(init, initlen);