~ubuntu-branches/ubuntu/raring/libnih/raring

« back to all changes in this revision

Viewing changes to nih/logging.c

  • Committer: James Hunt
  • Date: 2013-03-14 10:27:34 UTC
  • mfrom: (1027.1.34 upstart-devel-libnih)
  • Revision ID: james.hunt@ubuntu.com-20130314102734-blit21ei3v9n0u2o
Tags: 1.0.3-4ubuntu16
Merge of important fixes from lp:~upstart-devel/libnih/nih
(LP: #776532, LP: #777097, LP: #834813, LP: #1123588).

Show diffs side-by-side

added added

removed removed

Lines of Context:
43
43
 *
44
44
 * A variable that keeps the assertion message in the core dump.
45
45
 **/
46
 
char *__nih_abort_msg;
 
46
char *__nih_abort_msg = NULL;
47
47
 
48
48
/**
49
49
 * logger:
120
120
static void
121
121
nih_log_abort_message (const char *message)
122
122
{
123
 
        if (! &__nih_abort_msg)
124
 
                return;
125
 
 
126
123
        if (__nih_abort_msg)
127
124
                nih_discard (__nih_abort_msg);
128
125