Skip to content

Commit 71a8af6

Browse files
committed
Merge branch 'es/utf8-stupid-compiler-workaround' into maint
A compilation workaround. * es/utf8-stupid-compiler-workaround: utf8: NO_ICONV: silence uninitialized variable warning
2 parents a15ebbc + e654eb2 commit 71a8af6

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

utf8.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,9 @@ char *reencode_string_len(const char *in, int insz,
3131
const char *in_encoding,
3232
int *outsz);
3333
#else
34-
#define reencode_string_len(a,b,c,d,e) NULL
34+
static inline char *reencode_string_len(const char *a, int b,
35+
const char *c, const char *d, int *e)
36+
{ if (e) *e = 0; return NULL; }
3537
#endif
3638

3739
static inline char *reencode_string(const char *in,

0 commit comments

Comments
 (0)