Remove useless memset after calloc
authorMatt Turner <mattst88@gmail.com>
Wed, 5 Sep 2012 06:10:52 +0000 (23:10 -0700)
committerMatt Turner <mattst88@gmail.com>
Thu, 6 Sep 2012 05:28:50 +0000 (22:28 -0700)
Reviewed-by: Brian Paul <brianp@vmware.com>
src/glx/dri_glx.c
src/glx/drisw_glx.c

index 3a727e52904049ba390b722322a5946f876e1be7..03237d40ba89d04256cef420b32c88b2f62d5a7b 100644 (file)
@@ -850,7 +850,6 @@ driCreateScreen(int screen, struct glx_display *priv)
    if (psc == NULL)
       return NULL;
 
-   memset(psc, 0, sizeof *psc);
    if (!glx_screen_init(&psc->base, screen, priv)) {
       free(psc);
       return NULL;
index 920a9ab7b9964621452acba87cbf4a2143ac8426..014296b40edde106928779550452a9a18feb7553 100644 (file)
@@ -636,7 +636,6 @@ driswCreateScreen(int screen, struct glx_display *priv)
    if (psc == NULL)
       return NULL;
 
-   memset(psc, 0, sizeof *psc);
    if (!glx_screen_init(&psc->base, screen, priv)) {
       free(psc);
       return NULL;