~ubuntu-branches/ubuntu/quantal/ceph/quantal

« back to all changes in this revision

Viewing changes to src/common/ConfUtils.cc

  • Committer: Package Import Robot
  • Author(s): James Page
  • Date: 2012-07-16 09:56:24 UTC
  • mfrom: (0.3.11)
  • mto: This revision was merged to the branch mainline in revision 17.
  • Revision ID: package-import@ubuntu.com-20120716095624-azr2w4hbhei1rxmx
Tags: upstream-0.48
ImportĀ upstreamĀ versionĀ 0.48

Show diffs side-by-side

added added

removed removed

Lines of Context:
126
126
 
127
127
  sz = (size_t)st_buf.st_size;
128
128
  buf = (char*)malloc(sz);
 
129
  if (!buf) {
 
130
    ret = -ENOMEM;
 
131
    goto done;
 
132
  }
129
133
 
130
134
  if (fread(buf, 1, sz, fp) != sz) {
131
135
    if (ferror(fp)) {