diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2008-09-19 12:41:12 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2008-09-19 12:41:12 +0000 |
commit | eed36075645ecc3d3ef202c94badb66818114c2c (patch) | |
tree | 8fc00002f9f328d58280c7ca2590a64cce8b8961 /libavutil/tree.h | |
parent | 0354ddb71c18ea8e9d05d6d2509f9ec786a4488d (diff) | |
download | ffmpeg-eed36075645ecc3d3ef202c94badb66818114c2c.tar.gz |
Avoid undefined behavior for removing elements that were not in the tree.
Originally committed as revision 15368 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavutil/tree.h')
-rw-r--r-- | libavutil/tree.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/libavutil/tree.h b/libavutil/tree.h index c457234b09..ed6611c520 100644 --- a/libavutil/tree.h +++ b/libavutil/tree.h @@ -45,8 +45,7 @@ void *av_tree_find(const struct AVTreeNode *root, void *key, int (*cmp)(void *ke /** * Inserts or removes an element. - * If *next is NULL then the element supplied will be removed, if no such - * element exists behavior is undefined. + * If *next is NULL then the element supplied will be removed if it exists. * If *next is not NULL then the element supplied will be inserted, unless * it already exists in the tree. * @param rootp A pointer to a pointer to the root node of the tree. Note that |