/[jscoverage]/trunk/encoding.c
ViewVC logotype

Diff of /trunk/encoding.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 177 by siliconforks, Sat Sep 20 23:27:14 2008 UTC revision 178 by siliconforks, Sun Sep 21 18:33:41 2008 UTC
# Line 81  Line 81 
81    size_t output_bytes_left = sizeof(jschar) * num_bytes;    size_t output_bytes_left = sizeof(jschar) * num_bytes;
82    
83    size_t result = iconv(state, &input, &input_bytes_left, &output, &output_bytes_left);    size_t result = iconv(state, &input, &input_bytes_left, &output, &output_bytes_left);
84      iconv_close(state);
85    if (result == (size_t) -1) {    if (result == (size_t) -1) {
86      free(c);      free(c);
87      return JSCOVERAGE_ERROR_INVALID_BYTE_SEQUENCE;      return JSCOVERAGE_ERROR_INVALID_BYTE_SEQUENCE;

Legend:
Removed from v.177  
changed lines
  Added in v.178

  ViewVC Help
Powered by ViewVC 1.1.24