diff options
author | Chris Robinson <[email protected]> | 2013-03-24 13:55:41 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2013-03-24 13:55:41 -0700 |
commit | 43b406ad9bb32ebde78d26255a2a4f4a09a29926 (patch) | |
tree | 6df448e540966a83070fd1155b9f64a0a00340f5 /OpenAL32/alState.c | |
parent | dd48375bd6569d8695291d68152fe45016bf37b1 (diff) |
Simplify al_try code
Diffstat (limited to 'OpenAL32/alState.c')
-rw-r--r-- | OpenAL32/alState.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/OpenAL32/alState.c b/OpenAL32/alState.c index 678e9e94..9341050f 100644 --- a/OpenAL32/alState.c +++ b/OpenAL32/alState.c @@ -436,7 +436,7 @@ AL_API ALvoid AL_APIENTRY alGetIntegerv(ALenum pname, ALint *values) AL_API const ALchar* AL_APIENTRY alGetString(ALenum pname) { - const ALchar *value; + const ALchar *value = NULL; ALCcontext *Context; Context = GetContextRef(); @@ -490,10 +490,6 @@ AL_API const ALchar* AL_APIENTRY alGetString(ALenum pname) al_throwerr(Context, AL_INVALID_ENUM); } } - al_catchany() - { - value = NULL; - } al_endtry; ALCcontext_DecRef(Context); |