Changeset 47e0a6a for popexec.c


Ignore:
Timestamp:
Mar 24, 2011, 4:10:53 PM (10 years ago)
Author:
David Benjamin <davidben@mit.edu>
Branches:
master, release-1.8, release-1.9
Children:
283ff1e
Parents:
d07af84
git-author:
David Benjamin <davidben@mit.edu> (03/11/11 00:17:26)
git-committer:
David Benjamin <davidben@mit.edu> (03/24/11 16:10:53)
Message:
Punt a number of g_new NULL checks, various minor cleanups

No real need to check g_new's return value as it always succeeds. (Or
destroys the universe^Wprocess in embarrassment.) Also make owl_global
manage the lifetime of the kill buffer since it's part of owl_global
now. And replace a g_new/strncpy with a g_strndup. It's shorter.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • popexec.c

    rddbbcffa r47e0a6a  
    2323
    2424  pe = g_new(owl_popexec, 1);
    25   if (!pe) return NULL;
    2625  pe->winactive=0;
    2726  pe->pid=0;
Note: See TracChangeset for help on using the changeset viewer.