Changeset 219f52c for global.c


Ignore:
Timestamp:
Jan 23, 2012, 5:27:42 PM (10 years ago)
Author:
Jason Gross <jgross@mit.edu>
Branches:
master, release-1.9
Children:
d126a19
Parents:
ab88b05
git-author:
Jason Gross <jgross@mit.edu> (07/23/11 23:09:55)
git-committer:
Jason Gross <jgross@mit.edu> (01/23/12 17:27:42)
Message:
Allocate owl_messagelist on the heap

This lets us return NULL from owl_global_get_messagelist before the
messagelist has been initilized.

Since g has static duration, g.ml is automatically initialized to NULL.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • global.c

    rab88b05 r219f52c  
    7575  g_free(cd);
    7676
    77   owl_messagelist_create(&(g->msglist));
     77  g->msglist = owl_messagelist_new();
    7878
    7979  _owl_global_init_windows(g);
     
    257257
    258258owl_messagelist *owl_global_get_msglist(owl_global *g) {
    259   return(&(g->msglist));
     259  return g->msglist;
    260260}
    261261
Note: See TracChangeset for help on using the changeset viewer.