We are currently migrating Bugzilla to GitHub issues.
Any changes made to the bug tracker now will be lost, so please do not post new bugs or make changes to them.
When we're done, all bug URLs will redirect to their equivalent location on the new bug tracker.

Bug 789

Summary: Defining NDEBUG screws up initial working directory
Product: SDL Reporter: jerha202
Component: mainAssignee: Ryan C. Gordon <icculus>
Status: RESOLVED FIXED QA Contact: Sam Lantinga <slouken>
Severity: minor    
Priority: P2    
Version: 1.2.13   
Hardware: PowerPC   
OS: Mac OS X (All)   

Description jerha202 2009-09-07 11:00:41 UTC
When defining NDEBUG in a project that includes SDLMain.m as a source, the initial working directory will be / instead of the parent to the binary application. The reason is that at line 93 in SDLMain.m, the chdir() call has been placed in an assert, which is removed when NDEBUG is defined. chdir() should be called outside the assert.
Comment 1 Ryan C. Gordon 2009-09-12 21:28:35 UTC
This is fixed in svn revision #3579.

--ryan.