Fix a bogus uninitialized variable warning in IDL-based nbt code
authorVolker Lendecke <vl@samba.org>
Sat, 19 Apr 2008 15:58:53 +0000 (17:58 +0200)
committerVolker Lendecke <vl@samba.org>
Sat, 19 Apr 2008 15:56:35 +0000 (17:56 +0200)
(This used to be commit 06c5076f8ef23ac36d234ed417b80a58ab8dd7b4)

source3/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) {