< prev index next >

src/java.desktop/unix/native/libjsound/PLATFORM_API_LinuxOS_ALSA_Ports.c

Print this page
rev 16300 : 8170798: Fix minor issues in java2d and sound coding.
Reviewed-by: prr, serb

*** 1,7 **** /* ! * Copyright (c) 2003, 2013, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. Oracle designates this --- 1,7 ---- /* ! * Copyright (c) 2003, 2016, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. Oracle designates this
*** 383,392 **** --- 383,393 ---- int isPlayback = 0; int isMono; int isStereo; char* type; snd_mixer_selem_channel_id_t channel; + memset(controls, 0, sizeof(controls)); TRACE0("> PORT_GetControls\n"); if (id == NULL) { ERROR0("Invalid handle!"); // $$mp: an error code should be returned.
< prev index next >