Revision e2959f45 libavutil/error.c

View differences:

libavutil/error.c
36 36
    } else {
37 37
#if HAVE_STRERROR_R
38 38
        ret = strerror_r(AVUNERROR(errnum), errbuf, errbuf_size);
39
#else
40
        ret = -1;
39 41
#endif
40
        if (!HAVE_STRERROR_R || ret < 0)
42
        if (ret < 0)
41 43
            snprintf(errbuf, errbuf_size, "Error number %d occurred", errnum);
42 44
    }
43 45

  

Also available in: Unified diff