27 lines
928 B
Diff
27 lines
928 B
Diff
|
|
From 39c9140cceaffd98c683e1f426cc451909703554 Mon Sep 17 00:00:00 2001
|
||
|
|
From: Erik Minekus <tsunami@tsunami-productions.nl>
|
||
|
|
Date: Fri, 21 Sep 2018 14:20:18 +0200
|
||
|
|
Subject: [PATCH 081/557] Curl_saferealloc: Fixed typo in docblock
|
||
|
|
|
||
|
|
Closes #3029
|
||
|
|
---
|
||
|
|
lib/strdup.c | 2 +-
|
||
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
||
|
|
|
||
|
|
diff --git a/lib/strdup.c b/lib/strdup.c
|
||
|
|
index 19cb044..51e7978 100644
|
||
|
|
--- a/lib/strdup.c
|
||
|
|
+++ b/lib/strdup.c
|
||
|
|
@@ -81,7 +81,7 @@ void *Curl_memdup(const void *src, size_t length)
|
||
|
|
* Curl_saferealloc(ptr, size)
|
||
|
|
*
|
||
|
|
* Does a normal realloc(), but will free the data pointer if the realloc
|
||
|
|
- * fails. If 'size' is zero, it will free the data and return a failure.
|
||
|
|
+ * fails. If 'size' is non-zero, it will free the data and return a failure.
|
||
|
|
*
|
||
|
|
* This convenience function is provided and used to help us avoid a common
|
||
|
|
* mistake pattern when we could pass in a zero, catch the NULL return and end
|
||
|
|
--
|
||
|
|
1.8.3.1
|
||
|
|
|