Skip to Content.
Sympa Menu

freetds - [freetds] malloc/errno portability considerations

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: "ZIGLIO, Frediano, VF-IT" <Frediano.Ziglio AT vodafone.com>
  • To: "FreeTDS Development Group" <freetds AT lists.ibiblio.org>
  • Subject: [freetds] malloc/errno portability considerations
  • Date: Wed, 5 Dec 2007 17:11:30 +0100

I this that a line like

dbperror(NULL, SYBEMEM, errno);

is not that portable. The reason is that not all malloc implementations
set errno with ENOMEM. Why should replace the above line with

dbperror(NULL, SYBEMEM, ENOMEM);

freddy77




Archive powered by MHonArc 2.6.24.

Top of Page