~ubuntu-branches/ubuntu/precise/grass/precise

« back to all changes in this revision

Viewing changes to lib/db/dbmi_base/error.c

  • Committer: Bazaar Package Importer
  • Author(s): Francesco Paolo Lovergine
  • Date: 2011-04-13 17:08:41 UTC
  • mfrom: (8.1.7 sid)
  • Revision ID: james.westby@ubuntu.com-20110413170841-ss1t9bic0d0uq0gz
Tags: 6.4.1-1
* New upstream version.
* Now build-dep on libjpeg-dev and current libreadline6-dev.
* Removed patch swig: obsolete.
* Policy bumped to 3.9.2, without changes.

Show diffs side-by-side

added added

removed removed

Lines of Context:
33
33
void db_set_error_who(const char *me)
34
34
{
35
35
    if (who)
36
 
        free(who);
 
36
        db_free(who);
37
37
    who = db_store(me);
38
38
}
39
39
 
59
59
    if (s == NULL)
60
60
        s = "<NULL error message>";
61
61
    if (err_msg)
62
 
        free(err_msg);
 
62
        db_free(err_msg);
63
63
    err_msg = db_store(s);
64
64
    err_flag = 1;
65
65
    if (auto_print_errors)