Revision 847aaec6 libavutil/log.c

View differences:

libavutil/log.c
104 104

  
105 105
    vsnprintf(line + strlen(line), sizeof(line) - strlen(line), fmt, vl);
106 106

  
107
    print_prefix= line[strlen(line)-1] == '\n';
107
    print_prefix = strlen(line) && line[strlen(line)-1] == '\n';
108 108

  
109 109
#if HAVE_ISATTY
110 110
    if(!is_atty) is_atty= isatty(2) ? 1 : -1;

Also available in: Unified diff