aboutsummaryrefslogtreecommitdiffstats
path: root/OpenAL32/alState.c
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2013-03-24 13:55:41 -0700
committerChris Robinson <[email protected]>2013-03-24 13:55:41 -0700
commit43b406ad9bb32ebde78d26255a2a4f4a09a29926 (patch)
tree6df448e540966a83070fd1155b9f64a0a00340f5 /OpenAL32/alState.c
parentdd48375bd6569d8695291d68152fe45016bf37b1 (diff)
Simplify al_try code
Diffstat (limited to 'OpenAL32/alState.c')
-rw-r--r--OpenAL32/alState.c6
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);