diff options
author | Chris Robinson <[email protected]> | 2018-05-26 20:43:05 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2018-05-26 20:43:05 -0700 |
commit | 728dd5a4e05a5353795290c5d0b881883f5ecc83 (patch) | |
tree | 873a6f9ba39fa24d912f1f5993bbcd8d215c9c25 /Alc/ALu.c | |
parent | ac4061b9d2f5f0994e79ebc71ec85eb69b8b9655 (diff) |
Avoid setting unnecessary variables
Diffstat (limited to 'Alc/ALu.c')
-rw-r--r-- | Alc/ALu.c | 10 |
1 files changed, 0 insertions, 10 deletions
@@ -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) |