X-Git-Url: https://git.ozlabs.org/?a=blobdiff_plain;f=ccan%2Ftal%2Ftal.h;h=20cd89c5ee956ef0bc2e9dc63d27810b5ca0bf0d;hb=fc339122d69a85e5238d8bd7069d24ed4be4aed4;hp=8b7ffca5ea8125ef8ba36a623d989e8aad6fff33;hpb=c910bdce167ff42aa6d9e4f1b8f905a76f0b9e75;p=ccan diff --git a/ccan/tal/tal.h b/ccan/tal/tal.h index 8b7ffca5..20cd89c5 100644 --- a/ccan/tal/tal.h +++ b/ccan/tal/tal.h @@ -131,10 +131,11 @@ void *tal_free(const tal_t *p); /** * tal_steal - change the parent of a tal-allocated pointer. * @ctx: The new parent. - * @ptr: The tal allocated object to move. + * @ptr: The tal allocated object to move, or NULL. * * This may need to perform an allocation, in which case it may fail; thus - * it can return NULL, otherwise returns @ptr. + * it can return NULL, otherwise returns @ptr. If @ptr is NULL, this function does + * nothing. */ #if HAVE_STATEMENT_EXPR /* Weird macro avoids gcc's 'warning: value computed is not used'. */