aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/ALu.c
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2018-05-26 20:43:05 -0700
committerChris Robinson <[email protected]>2018-05-26 20:43:05 -0700
commit728dd5a4e05a5353795290c5d0b881883f5ecc83 (patch)
tree873a6f9ba39fa24d912f1f5993bbcd8d215c9c25 /Alc/ALu.c
parentac4061b9d2f5f0994e79ebc71ec85eb69b8b9655 (diff)
Avoid setting unnecessary variables
Diffstat (limited to 'Alc/ALu.c')
-rw-r--r--Alc/ALu.c10
1 files changed, 0 insertions, 10 deletions
diff --git a/Alc/ALu.c b/Alc/ALu.c
index 3cd8ed5c..dd720183 100644
--- a/Alc/ALu.c
+++ b/Alc/ALu.c
@@ -1878,17 +1878,7 @@ void aluHandleDisconnect(ALCdevice *device, const char *msg, ...)
va_end(args);
if(msglen < 0 || (size_t)msglen >= sizeof(evt.Message))
- {
evt.Message[sizeof(evt.Message)-1] = 0;
- msglen = (int)strlen(evt.Message);
- }
- if(msglen > 0)
- msg = evt.Message;
- else
- {
- msg = "<internal error constructing message>";
- msglen = (int)strlen(msg);
- }
ctx = ATOMIC_LOAD_SEQ(&device->ContextList);
while(ctx)