Fix a bogus uninitialized variable warning in IDL-based nbt code
[kai/samba.git] / source / libcli / nbt / nbtname.c
index 5aff15bb45bd86b16ff0c92e2d5703ba94c7ce30..2025ef70e7374d40e371c79dadcfcbf10c1754e4 100644 (file)
@@ -110,7 +110,7 @@ _PUBLIC_ enum ndr_err_code ndr_pull_nbt_string(struct ndr_pull *ndr, int ndr_fla
 
        /* break up name into a list of components */
        for (num_components=0;num_components<MAX_COMPONENTS;num_components++) {
-               uint8_t *component;
+               uint8_t *component = NULL;
                NDR_CHECK(ndr_pull_component(ndr, &component, &offset, &max_offset));
                if (component == NULL) break;
                if (name) {