Uploaded image for project: 'C Driver'
  1. C Driver
  2. CDRIVER-1378

Accept NULL endptr in bson_ascii_strtoll()

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Trivial - P5
    • Resolution: Fixed
    • Affects Version/s: 1.3.5
    • Fix Version/s: 1.4.0
    • Component/s: libbson
    • Labels:
      None

      Description

      strtoll(3) allows NULL for its second argument, making (endptr assignment optional. I propose allowing bson_ascii_strtoll() to do the same for consistency.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              jmikola Jeremy Mikola
              Reporter:
              jmikola Jeremy Mikola
              Participants:
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: