../../tools/ctdb.c: In function 'str_to_data':
../../tools/ctdb.c:624: warning: 'data.dsize' may be used uninitialized in this function
../../tools/ctdb.c:624: warning: 'data.dptr' may be used uninitialized in this function
Signed-off-by: Amitay Isaacs <amitay@gmail.com>
Reviewed-by: Martin Schwenke <martin@meltin.net>
if (strncmp(str, "0x", 2) == 0) {
ret = hex_to_data(str+2, len-2, mem_ctx, &data);
+ if (ret != 0) {
+ return ret;
+ }
} else {
data.dptr = talloc_memdup(mem_ctx, str, len);
if (data.dptr == NULL) {
}
*out = data;
- return ret;
+ return 0;
}
static int run_helper(TALLOC_CTX *mem_ctx, const char *command,