~ubuntu-branches/ubuntu/gutsy/icu/gutsy

« back to all changes in this revision

Viewing changes to source/tools/toolutil/ucbuf.c

  • Committer: Package Import Robot
  • Author(s): Matthias Klose
  • Date: 2005-05-21 22:44:31 UTC
  • mfrom: (2.1.1 warty)
  • Revision ID: package-import@ubuntu.com-20050521224431-r7rktfhnu1n4tf1g
Tags: 2.1-2.1
Rename icu-doc to icu21-doc. icu-doc is built by the icu28 package.

Show diffs side-by-side

added added

removed removed

Lines of Context:
352
352
        }
353
353
        buf->remaining=T_FileStream_size(in)-numRead;
354
354
        buf->buffer=(UChar*) uprv_malloc(sizeof(UChar)* MAX_U_BUF);
355
 
                if (buf->buffer == NULL) {
356
 
                        *err = U_MEMORY_ALLOCATION_ERROR;
357
 
                        return NULL;
358
 
                }
 
355
        if (buf->buffer == NULL) {
 
356
            *err = U_MEMORY_ALLOCATION_ERROR;
 
357
            return NULL;
 
358
        }
359
359
        buf->currentPos=buf->buffer;
360
360
        buf->bufLimit=buf->buffer;
361
361
        if(U_FAILURE(*err)){