• Show log

    Commit

  • Hash : 4796c916
    Author : Patrick Steinhardt
    Date : 2017-06-07T09:56:31

    buffer: return errors for `git_buf_init` and `git_buf_attach`
    
    Both the `git_buf_init` and `git_buf_attach` functions may call
    `git_buf_grow` in case they were given an allocation length as
    parameter. As such, it is possible for these functions to fail when we
    run out of memory. While it won't probably be used anytime soon, it does
    indeed make sense to also record this fact by returning an error code
    from both functions. As they belong to the internal API only, this
    change does not break our interface.