* If an unknown type is encountered, return immediately. This fixes CID 1504.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38408 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright 2007-2008, Haiku, Inc. All Rights Reserved.
|
* Copyright 2007-2010, Haiku, Inc. All Rights Reserved.
|
||||||
* Distributed under the terms of the MIT License.
|
* Distributed under the terms of the MIT License.
|
||||||
*
|
*
|
||||||
* Authors:
|
* Authors:
|
||||||
@@ -499,7 +499,7 @@ hda_stream_new(hda_audio_group* audioGroup, int type)
|
|||||||
default:
|
default:
|
||||||
dprintf("%s: Unknown stream type %d!\n", __func__, type);
|
dprintf("%s: Unknown stream type %d!\n", __func__, type);
|
||||||
free(stream);
|
free(stream);
|
||||||
stream = NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
// find I/O and Pin widgets for this stream
|
// find I/O and Pin widgets for this stream
|
||||||
|
|||||||
Reference in New Issue
Block a user