summaryrefslogtreecommitdiff
path: root/lib/rand.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2017-05-22 13:58:17 +0200
committerDaniel Stenberg <daniel@haxx.se>2017-05-22 13:59:29 +0200
commit8589e1fe30773e10c50b9a65d4f96eeb8434233c (patch)
treeabd3ef9c42c4c8a84f8071933e747e46d4da35b6 /lib/rand.c
parentfab9629133025e2d9517334535908200802b5e96 (diff)
downloadcurl-8589e1fe30773e10c50b9a65d4f96eeb8434233c.tar.gz
assert: avoid, use DEBUGASSERT instead!
... as it does extra checks to actually work. Reported-by: jonrumsey at github Fixes #1504
Diffstat (limited to 'lib/rand.c')
-rw-r--r--lib/rand.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/rand.c b/lib/rand.c
index a61a070ee..b6f40ac0a 100644
--- a/lib/rand.c
+++ b/lib/rand.c
@@ -121,7 +121,7 @@ CURLcode Curl_rand(struct Curl_easy *data, unsigned char *rnd, size_t num)
{
CURLcode result = CURLE_BAD_FUNCTION_ARGUMENT;
- assert(num > 0);
+ DEBUGASSERT(num > 0);
while(num) {
unsigned int r;