1
0
mirror of https://github.com/samba-team/samba.git synced 2025-12-14 20:23:54 +03:00

r25047: Fix more warnings.

(This used to be commit 69de86d2d2)
This commit is contained in:
Jelmer Vernooij
2007-09-09 19:34:30 +00:00
committed by Gerald (Jerry) Carter
parent 43742e53c9
commit 7e297ecfa4
14 changed files with 74 additions and 91 deletions

View File

@@ -259,26 +259,6 @@ _PUBLIC_ char *hex_encode_talloc(TALLOC_CTX *mem_ctx, const unsigned char *buff_
return hex_buffer;
}
/**
Set a string value, deallocating any existing space, and allocing the space
for the string
**/
_PUBLIC_ bool string_set(TALLOC_CTX *mem_ctx, char **dest, const char *src)
{
talloc_free(*dest);
if (src == NULL)
src = "";
*dest = talloc_strdup(mem_ctx, src);
if ((*dest) == NULL) {
DEBUG(0,("Out of memory in string_init\n"));
return false;
}
return true;
}
/**
Substitute a string for a pattern in another string. Make sure there is
enough room!