summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFreeArtMan <dos21h@gmail.com>2015-12-18 18:09:47 +0000
committerFreeArtMan <dos21h@gmail.com>2015-12-18 18:09:47 +0000
commit1e2abb48c0e3a735e666124e96090c367bc30544 (patch)
treebab5b0aa41d18c202eee2c6c8c0b52a061d5c2dd
parent6e2e285142895f3ed4b7e5b99ff1595092d84969 (diff)
downloaddm-1e2abb48c0e3a735e666124e96090c367bc30544.tar.gz
dm-1e2abb48c0e3a735e666124e96090c367bc30544.zip
Fix pointer dereference?
-rw-r--r--mtable.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mtable.c b/mtable.c
index 7d705e8..0f81a27 100644
--- a/mtable.c
+++ b/mtable.c
@@ -12,7 +12,7 @@ mt_table* mt_create()
printf("Cannot allocate mem for mt_table\n");
return NULL;
}
- memset(mt,0,sizeof(mt));
+ memset(mt,0,sizeof(mt_table));
mt->table = darr_create( sizeof(mt_range), 100 );
if (mt->table == NULL)