]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
Fix a C++ warning
authorVolker Lendecke <vl@samba.org>
Sun, 6 Apr 2008 10:26:15 +0000 (12:26 +0200)
committerVolker Lendecke <vl@samba.org>
Sun, 6 Apr 2008 10:27:16 +0000 (12:27 +0200)
source/nsswitch/winbind_nss_linux.c

index b59c0021c28511d4bd80748687d086d2940fde78..c11c18759e65cb4526c6dd32c2ac24322637312a 100644 (file)
@@ -147,7 +147,7 @@ static bool next_token_alloc(const char **ptr,
        }
 
        /* We started with len = 1 so we have space for the nul. */
-       *pp_buff = malloc(len);
+       *pp_buff = (char *)malloc(len);
        if (!*pp_buff) {
                return false;
        }