Skip to content

Commit

Permalink
xquartz: Get rid of xstrdup when argument is definitely non-NULL
Browse files Browse the repository at this point in the history
ditto for XQuartz

Signed-off-by: Mikhail Gusarov <[email protected]>
Reviewed-by: Alan Coopersmith <[email protected]>
  • Loading branch information
dottedmag committed Jun 11, 2010
1 parent eea286f commit 416d228
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions hw/xquartz/GL/indirect.c
Original file line number Diff line number Diff line change
Expand Up @@ -595,12 +595,12 @@ static __GLXscreen * __glXAquaScreenProbe(ScreenPtr pScreen) {

__glXScreenInit(&screen->base, pScreen);

screen->base.GLXversion = xstrdup("1.4");
screen->base.GLXextensions = xstrdup("GLX_SGIX_fbconfig "
"GLX_SGIS_multisample "
"GLX_ARB_multisample "
"GLX_EXT_visual_info "
"GLX_EXT_import_context ");
screen->base.GLXversion = strdup("1.4");
screen->base.GLXextensions = strdup("GLX_SGIX_fbconfig "
"GLX_SGIS_multisample "
"GLX_ARB_multisample "
"GLX_EXT_visual_info "
"GLX_EXT_import_context ");

/*We may be able to add more GLXextensions at a later time. */

Expand Down

0 comments on commit 416d228

Please sign in to comment.