~serge-hallyn/ubuntu/quantal/lxc/lxc-fixapi

« back to all changes in this revision

Viewing changes to src/lxc/lxc_monitor.c

  • Committer: Bazaar Package Importer
  • Author(s): Serge Hallyn
  • Date: 2011-07-07 13:53:52 UTC
  • mfrom: (1.2.7 upstream)
  • mto: (3.1.15 sid)
  • mto: This revision was merged to the branch mainline in revision 20.
  • Revision ID: james.westby@ubuntu.com-20110707135352-2e27007vciicu4gf
Tags: upstream-0.7.4.2
ImportĀ upstreamĀ versionĀ 0.7.4.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
69
69
                return -1;
70
70
 
71
71
        regexp = malloc(strlen(my_args.name) + 3);
 
72
        if (!regexp) {
 
73
                ERROR("failed to allocate memory");
 
74
                return -1;
 
75
        }
72
76
        sprintf(regexp, "^%s$", my_args.name);
73
77
 
74
78
        if (regcomp(&preg, regexp, REG_NOSUB|REG_EXTENDED)) {