• Show log

    Commit

  • Hash : 40f6f225
    Author : Patrick Steinhardt
    Date : 2016-02-15T10:58:52

    coverity: hint that string length is at least 2
    
    When checking if a string is prefixed by a drive letter (e.g.
    "C:") we verify this by inspecting the first and second character
    of the string. Coverity thinks this is a defect as we do not
    check the string's length first, but in fact we only check the
    second character if the first character is part of the alphabet,
    that is it cannot be '\0'.
    
    Fix this by overriding the macro and explicitly checking the
    string's length.