Re: [hail patch 1/1] Fix calling convention of huri_field_escape

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 09/27/2010 08:49 PM, Pete Zaitcev wrote:
Premature optimization is the root of all evil.

Use a sensible convention of not screwing with the argument, at the expense
of extra strdup.

Fortunately, all users are confined to Hail itself, even if huri_field_escape
is exported.

Signed-off-by: Pete Zaitcev<zaitcev@xxxxxxxxxx>

---
  include/hstor.h |    2 +-
  lib/hstor.c     |   44 +++++++++++++++++++++++++++++---------------
  lib/huri.c      |   10 +++++-----
  3 files changed, 35 insertions(+), 21 deletions(-)

applied


--
To unsubscribe from this list: send the line "unsubscribe hail-devel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Fedora Clound]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux