diff tree.h @ 572:5877edf05eb7 libavutil

Avoid undefined behavior for removing elements that were not in the tree.
author michael
date Fri, 19 Sep 2008 12:41:12 +0000
parents bd4052d9050c
children c04808220c83
line wrap: on
line diff
--- a/tree.h	Mon Sep 15 22:10:28 2008 +0000
+++ b/tree.h	Fri Sep 19 12:41:12 2008 +0000
@@ -45,8 +45,7 @@
 
 /**
  * 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