Mercurial > noffle
diff src/request.c @ 249:0340b9c17edc noffle
[svn] *** empty log message ***
author | mirkol |
---|---|
date | Tue, 14 May 2002 15:25:45 +0100 |
parents | 24d4cd032da5 |
children | 5eece4dfd945 |
line wrap: on
line diff
--- a/src/request.c Tue Mar 26 17:52:48 2002 +0000 +++ b/src/request.c Tue May 14 15:25:45 2002 +0100 @@ -3,7 +3,7 @@ Collection of articles that are marked for download. - $Id: request.c 316 2001-10-31 11:44:53Z bears $ + $Id: request.c 381 2002-05-14 14:25:45Z mirkol $ */ #if HAVE_CONFIG_H @@ -190,7 +190,11 @@ if (rs->reql_length >= rs->reql_capacity) { int c1 = rs->reql_capacity*2 + 10; - rs->reql = (char**) realloc(rs->reql, c1*sizeof(char*)); + if ( ! ( rs->reql = (char**) realloc(rs->reql, c1*sizeof(char*) ) ) ) + { + Log_err( "Could not realloc requests." ); + exit( EXIT_FAILURE ); + } rs->reql_capacity = c1; }