Initialize pointers
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Anoop C S <anoopcs@samba.org>
uint32_t *p_name_hash)
{
char tmpbuf[PATH_MAX];
- char *fullpath, *to_free;
+ char *fullpath = NULL, *to_free = NULL;
ssize_t len;
- TDB_DATA key;
+ TDB_DATA key = {.dptr = NULL};
/* Set the hash of the full pathname. */
strlcpy(tmpbuf, name, sizeof(tmpbuf));
fullpath = tmpbuf;
len = strlen(fullpath);
- to_free = NULL;
} else {
len = full_path_tos(conn->connectpath,
name,