Changeset 55b2de8 for global.c


Ignore:
Timestamp:
May 12, 2011, 4:39:26 PM (13 years ago)
Author:
David Benjamin <davidben@mit.edu>
Children:
7fd0bf7
Parents:
13ee8f2
git-author:
David Benjamin <davidben@mit.edu> (05/07/11 15:12:09)
git-committer:
David Benjamin <davidben@mit.edu> (05/12/11 16:39:26)
Message:
Remove NULL checks before calling g_free

g_free handles the NULL check for us.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • global.c

    r7b4f3be r55b2de8  
    505505
    506506void owl_global_set_startupargs(owl_global *g, int argc, char **argv) {
    507   if (g->startupargs) g_free(g->startupargs);
     507  g_free(g->startupargs);
    508508  g->startupargs = g_strjoinv(" ", argv);
    509509}
Note: See TracChangeset for help on using the changeset viewer.