• Tom Lane's avatar
    Improve coding of column-name parsing in psql's new crosstabview.c. · 7a5f8b5c
    Tom Lane authored
    Coverity complained about this code, not without reason because it was
    rather messy.  Adjust it to not scribble on the passed string; that adds
    one malloc/free cycle per column name, which is going to be insignificant
    in context.  We can actually const-ify both the string argument and the
    PGresult.
    
    Daniel Verité, with some further cleanup by me
    7a5f8b5c
crosstabview.c 21.4 KB