Please do not reply to this email: if you want to comment on the bug, go to    
       
the URL shown below and enter yourcomments there.     
   
https://bugs.freedesktop.org/show_bug.cgi?id=9317          
     
           Summary: Mesa demos should use XDisplayName when printing errors
           Product: Mesa
           Version: 6.5
          Platform: All
        OS/Version: Solaris
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Demos
        AssignedTo: mesa3d-dev@lists.sourceforge.net
        ReportedBy: [EMAIL PROTECTED]


When printing errors such as "Can't open display" many of the Mesa demos use
code such as:
   printf("Error: couldn't open display %s\n", dpyName);

These messages should instead use XDisplayName, both to substitute in $DISPLAY
when using that because -display wasn't passed, and to ensure that if neither
was set, the result returns a string of "" instead of a NULL pointer, so they
don't segfault on OS'es like Solaris which segfault on printf("%s", NULL).

Patch to cleanup the demos follows.          
     
     
--           
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email         
     
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Mesa3d-dev mailing list
Mesa3d-dev@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mesa3d-dev

Reply via email to