~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to client/drizzle.cc

  • Committer: Olaf van der Spek
  • Date: 2011-06-14 20:42:14 UTC
  • mto: (2318.6.3 refactor7)
  • mto: This revision was merged to the branch mainline in revision 2337.
  • Revision ID: olafvdspek@gmail.com-20110614204214-gswvc2b6fr113758
Remove malloc NULL check. Just die.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1881
1881
      if (verbose)
1882
1882
        tee_fprintf(stdout, _("Reading history-file %s\n"),histfile);
1883
1883
      read_history(histfile);
1884
 
      if (!(histfile_tmp= (char*) malloc((uint32_t) strlen(histfile) + 5)))
1885
 
      {
1886
 
        fprintf(stderr, _("Couldn't allocate memory for temp histfile!\n"));
1887
 
        exit(1);
1888
 
      }
 
1884
      histfile_tmp= (char*) malloc((uint32_t) strlen(histfile) + 5);
1889
1885
      sprintf(histfile_tmp, "%s.TMP", histfile);
1890
1886
    }
1891
1887
  }