< prev index next >
src/java.desktop/unix/native/libjsound/PLATFORM_API_SolarisOS_Ports.c
Print this page
rev 16300 : 8170798: Fix minor issues in java2d and sound coding.
Reviewed-by: prr, serb
@@ -1,7 +1,7 @@
/*
- * Copyright (c) 2002, 2007, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2002, 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
@@ -388,10 +388,11 @@
int portCount = PORT_GetPortCount(id);
void* controls[4];
int controlCount = 0;
INT32 type;
int selectable = 1;
+ memset(controls, 0, sizeof(controls));
TRACE4(">PORT_GetControls(id=%p, portIndex=%d). controlIDs=%p, maxControlCount=%d\n",
id, portIndex, info->controlIDs, info->maxControlCount);
if ((portIndex >= 0) && (portIndex < portCount)) {
// if the memory isn't reserved for the control structures, allocate it
< prev index next >