]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
wrong operand to sizeof
authorMathieu Rene <mrene@avgs.ca>
Wed, 20 Jun 2012 16:30:37 +0000 (12:30 -0400)
committerMathieu Rene <mrene@avgs.ca>
Wed, 20 Jun 2012 16:30:37 +0000 (12:30 -0400)
libs/freetdm/src/ftdm_io.c

index 78e65dfe88f4af163951da719c575c37a69c2731..c081c655d85aaf38f1dd37c7c465b6a5719d12c2 100644 (file)
@@ -169,7 +169,7 @@ static void stop_chan_io_dump(ftdm_io_dump_t *dump)
                return;
        }
        ftdm_safe_free(dump->buffer);
-       memset(dump, 0, sizeof(dump));
+       memset(dump, 0, sizeof(*dump));
 }
 
 static ftdm_status_t start_chan_io_dump(ftdm_channel_t *chan, ftdm_io_dump_t *dump, ftdm_size_t size)