summaryrefslogtreecommitdiff
path: root/lib/stringbuf.c
diff options
context:
space:
mode:
authorjbj <devnull@localhost>2001-05-23 14:25:19 +0000
committerjbj <devnull@localhost>2001-05-23 14:25:19 +0000
commit71f818828ed608b895896670f15437ffc491b785 (patch)
tree98b5ba4dbe808c8c63b6c5fbc7f9efa5640824a4 /lib/stringbuf.c
parent0112602155b5500ba63e9874072c89d5241aec7a (diff)
downloadlibrpm-tizen-71f818828ed608b895896670f15437ffc491b785.tar.gz
librpm-tizen-71f818828ed608b895896670f15437ffc491b785.tar.bz2
librpm-tizen-71f818828ed608b895896670f15437ffc491b785.zip
- headerFree() returns NULL, _free is C++ safe.
CVS patchset: 4807 CVS date: 2001/05/23 14:25:19
Diffstat (limited to 'lib/stringbuf.c')
-rw-r--r--lib/stringbuf.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/stringbuf.c b/lib/stringbuf.c
index c4324d12b..3e6b58b41 100644
--- a/lib/stringbuf.c
+++ b/lib/stringbuf.c
@@ -26,10 +26,10 @@ struct StringBufRec {
/**
* Wrapper to free(3), hides const compilation noise, permit NULL, return NULL.
* @param this memory to free
- * @retval NULL always
+ * @return NULL always
*/
-/*@unused@*/ static inline /*@null@*/ void * _free(/*@only@*/ /*@null@*/ const void * this) {
- if (this != NULL) free((void *)this);
+/*@unused@*/ static inline /*@null@*/ void * _free(/*@only@*/ /*@null@*/ const void * p) {
+ if (p != NULL) free((void *)p);
return NULL;
}