Fix warning:
authorStanislav Brabec <sbrabec@suse.cz>
Sat, 31 Mar 2007 16:36:56 +0000 (16:36 +0000)
committerDiego Biurrun <diego@biurrun.de>
Sat, 31 Mar 2007 16:36:56 +0000 (16:36 +0000)
ffserver.c:4303: warning: 'acl.next' is used uninitialized in this function
patch by Stanislav Brabec, sbrabec suse cz

Originally committed as revision 8573 to svn://svn.ffmpeg.org/ffmpeg/trunk

ffserver.c

index 29b785b..063ac5a 100644 (file)
@@ -4296,8 +4296,8 @@ static int parse_ffconfig(const char *filename)
                 IPAddressACL *nacl = (IPAddressACL *) av_mallocz(sizeof(*nacl));
                 IPAddressACL **naclp = 0;
 
                 IPAddressACL *nacl = (IPAddressACL *) av_mallocz(sizeof(*nacl));
                 IPAddressACL **naclp = 0;
 
+                acl.next = 0;
                 *nacl = acl;
                 *nacl = acl;
-                nacl->next = 0;
 
                 if (stream) {
                     naclp = &stream->acl;
 
                 if (stream) {
                     naclp = &stream->acl;