1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-09 08:58:35 +03:00

Fix warnings with talloc_asprintf.

Jeremy.
This commit is contained in:
Jeremy Allison 2009-11-25 14:47:36 -08:00
parent c96d487ae3
commit c5b234c9cd

View File

@ -1602,9 +1602,9 @@ static uint32 get_correct_cversion(struct pipes_struct *p,
****************************************************************************/
#define strip_driver_path(_mem_ctx, _element) do { \
if ((_p = strrchr(_element, '\\')) != NULL) { \
_element = talloc_asprintf(_mem_ctx, _p+1); \
W_ERROR_HAVE_NO_MEMORY(_element); \
if ((_p = strrchr((_element), '\\')) != NULL) { \
(_element) = talloc_asprintf((_mem_ctx), "%s", _p+1); \
W_ERROR_HAVE_NO_MEMORY((_element)); \
} \
} while (0);