• Show log

    Commit

  • Hash : ce33645f
    Author : Vicent Marti
    Date : 2013-12-13T12:25:48

    pool: Cleanup error handling in pool_strdup
    
    Note that `git_pool_strdup` cannot really return any error codes,
     because the pool doesn't set errors on OOM.
    
     The only place where `giterr_set_oom` is called is in
     `git_pool_strndup`, in a conditional check that is always optimized
     away. `n + 1` cannot be zero if `n` is unsigned because the compiler
     doesn't take wraparound into account.
    
     This check has been removed altogether because `size_t` is not
     particularly going to overflow.