Skip to content
Snippets Groups Projects
  • Andrew Dunstan's avatar
    c8315930
    Fix some jsonb issues found by Coverity in recent commits. · c8315930
    Andrew Dunstan authored
    Mostly these issues concern the non-use of function results. These
    have been changed to use (void) pushJsonbValue(...) instead of assigning
    the result to a variable that gets overwritten before it is used.
    
    There is a larger issue that we should possibly examine the API for
    pushJsonbValue(), so that instead of returning a value it modifies a
    state argument. The current idiom is rather clumsy. However, changing
    that requires quite a bit more work, so this change should do for the
    moment.
    c8315930
    History
    Fix some jsonb issues found by Coverity in recent commits.
    Andrew Dunstan authored
    Mostly these issues concern the non-use of function results. These
    have been changed to use (void) pushJsonbValue(...) instead of assigning
    the result to a variable that gets overwritten before it is used.
    
    There is a larger issue that we should possibly examine the API for
    pushJsonbValue(), so that instead of returning a value it modifies a
    state argument. The current idiom is rather clumsy. However, changing
    that requires quite a bit more work, so this change should do for the
    moment.