Unix Technical Forum

pgsql: Minor ecpg tweak: the return value of calloc() is guaranteed to

This is a discussion on pgsql: Minor ecpg tweak: the return value of calloc() is guaranteed to within the pgsql Committers forums, part of the PostgreSQL category; --> Log Message: ----------- Minor ecpg tweak: the return value of calloc() is guaranteed to be NULL or zero-filled; therefore ...


Go Back   Unix Technical Forum > Database Server Software > PostgreSQL > pgsql Committers

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-10-2008, 12:12 PM
Neil Conway
 
Posts: n/a
Default pgsql: Minor ecpg tweak: the return value of calloc() is guaranteed to

Log Message:
-----------
Minor ecpg tweak: the return value of calloc() is guaranteed to be NULL
or zero-filled; therefore zero-filling it via memset() is pointless.
(I think setting `errno' is probably a waste of cycles as well, but I
haven't changed that.)

Modified Files:
--------------
pgsql/src/interfaces/ecpg/pgtypeslib:
common.c (r1.10 -> r1.11)
(http://developer.postgresql.org/cvsw...1=1.10&r2=1.11)

---------------------------(end of broadcast)---------------------------
TIP 8: explain analyze is your friend

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 09:31 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com