Просмотр исходного кода

[Minor] Fix broken usage of strerror_r

tags/1.7.0
Vsevolod Stakhov 6 лет назад
Родитель
Сommit
db9dff1c16
1 измененных файлов: 1 добавлений и 1 удалений
  1. 1
    1
      contrib/hiredis/hiredis.h

+ 1
- 1
contrib/hiredis/hiredis.h Просмотреть файл

@@ -94,7 +94,7 @@
/* "bad" GNU strerror_r we need to clean up after. */
#define __redis_strerror_r(errno, buf, len) \
do { \
char *err_str = strerror_r((errno), (buf), (len)); \
char *err_str = strerror((errno)); \
/* If return value _isn't_ the start of the buffer we passed in, \
* then GNU strerror_r returned an internal static buffer and we \
* need to copy the result into our private buffer. */ \

Загрузка…
Отмена
Сохранить