Changeset 44cfc6031b411c3e66d78fb804c759b27791bb34
- Timestamp:
- 02/25/08 14:17:06
(6 months ago)
- Author:
- Pierre d'Herbemont <pdherbemont@videolan.org>
- git-committer:
- Pierre d'Herbemont <pdherbemont@videolan.org> 1203945426 +0000
- git-parent:
[2c083c9f8600e8457d9fc119f3ffc094c279b0a7]
- git-author:
- Pierre d'Herbemont <pdherbemont@videolan.org> 1203945426 +0000
- Message:
misc/threads.c: Fix error description printing in vlc_pthread_fatal().
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| rcc6e3d0 |
r44cfc60 |
|
| 96 | 96 | const char *file, unsigned line) |
|---|
| 97 | 97 | { |
|---|
| 98 | | char buf[1000]; |
|---|
| 99 | 98 | const char *msg; |
|---|
| 100 | 99 | |
|---|
| … | … | |
| 103 | 102 | fflush (stderr); |
|---|
| 104 | 103 | |
|---|
| 105 | | /* Sometimes strerror_r() crashes too, so make sure we print an error |
|---|
| | 104 | /* Sometimes strerror() crashes too, so make sure we print an error |
|---|
| 106 | 105 | * message before we invoke it */ |
|---|
| 107 | | msg = strerror_r (error, buf, sizeof (buf)); |
|---|
| 108 | | fprintf (stderr, " %s\n", msg ? msg : "(null)"); |
|---|
| | 106 | msg = strerror (error); |
|---|
| | 107 | fprintf (stderr, "Error description was: \"%s\"\n", msg ? msg : "(null)"); |
|---|
| 109 | 108 | fflush (stderr); |
|---|
| 110 | 109 | abort (); |
|---|