home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!ulowell!news.bbn.com!noc.near.net!news.centerline.com!sebastian.centerline.com!user
- From: dewey@centerline.com (Devan F. dewey)
- Newsgroups: comp.lang.perl
- Subject: Bad free() error???
- Followup-To: comp.lang.perl
- Date: 13 Nov 1992 17:34:13 GMT
- Organization: CenterLine Software, Inc.
- Lines: 48
- Distribution: world
- Message-ID: <dewey-131192123446@sebastian.centerline.com>
- NNTP-Posting-Host: 140.239.3.212
-
- Has anyone ever seen this error:
-
- Bad free() ignored at newreports.pl line 354, <> line 4.
-
- The code that it points to is:
-
- 351 sub getparam {
- 352 local($paramname, $string, $format, $req) = @_;
- 353
- 354 $input = &getinput($string, $format, $req);
- 355 $parameter = " $paramname=$input";
- 356 return $parameter;
- 357 }
- 358
- 359 sub getinput {
- 360 local($string, $format, $req) = @_;
- 361
- 362 $nogo = 1;
- 363 while ($nogo) {
- 364 print "\nEnter $string";
- 365 print " (Hint: $format)" if $format;
- 366 print ": ";
- 367 $input = <>;
- 368 chop $input;
- 369
- 370 if ($input eq "" & $req) {
- 371 print "\n$string may not be empty.\n";
- 372 $nogo = 1;
- 373 } else {
- 374 $nogo = 0;
- 375 }
- 376 }
- 377
- 378 return $input;
- 379 }
- 380
-
-
- Thanks for any thoughts.
-
- -Devan
-
-
- Devan F. Dewey | Senior Systems Analyst
- CenterLine Software | dewey@centerline.com
- 10 Fawcett Street | "Leme esplain - no dere is
- Cambridge, MA 02138 | too much. Leme sum up."
- -Inigo Montoya
-