]> granicus.if.org Git - libass/commitdiff
Fix incorrect memset
authorDr.Smile <vabnick@gmail.com>
Thu, 29 Jan 2015 20:50:38 +0000 (23:50 +0300)
committerDr.Smile <vabnick@gmail.com>
Thu, 29 Jan 2015 20:50:38 +0000 (23:50 +0300)
libass/ass_render.c

index 25f4bf6b8da41a7e325fa39bd4d7a2dadf8d82bf..614078800621a78b2892e6f739896c5d71b6461f 100644 (file)
@@ -1148,7 +1148,7 @@ get_outline_glyph(ASS_Renderer *priv, GlyphInfo *info)
     OutlineHashValue *val;
     OutlineHashKey key;
 
-    memset(&info->hash_key, 0, sizeof(key));
+    memset(&info->hash_key, 0, sizeof(info->hash_key));
 
     fill_glyph_hash(priv, &key, info);
     val = ass_cache_get(priv->cache.outline_cache, &key);