• Show log

    Commit

  • Hash : be8479c9
    Author : Patrick Steinhardt
    Date : 2016-02-22T14:01:50

    diff_print: assert patch is non-NULL
    
    When invoking `diff_print_info_init_frompatch` it is obvious that
    the patch should be non-NULL. We explicitly check if the variable
    is set and continue afterwards, happily dereferencing the
    potential NULL-pointer.
    
    Fix this by instead asserting that patch is set. This also
    silences Coverity.