diff options
author | Andreas Obergrusberger <tradiaz@yahoo.de> | 2006-09-08 22:24:01 +0000 |
---|---|---|
committer | Andreas Obergrusberger <tradiaz@yahoo.de> | 2006-09-08 22:24:01 +0000 |
commit | b93dee727713d9e471e801242fbce2a762c66e75 (patch) | |
tree | d331f22685ae033ec8dce39af667cd20e59f591a /src/screen.c | |
parent | a830ea432b79271a2e0087cc3d906f548e6640a5 (diff) | |
download | mpd-b93dee727713d9e471e801242fbce2a762c66e75.tar.gz mpd-b93dee727713d9e471e801242fbce2a762c66e75.tar.xz mpd-b93dee727713d9e471e801242fbce2a762c66e75.zip |
multi liner ;) fixed segfault
git-svn-id: https://svn.musicpd.org/ncmpc/branches/tradiaz@4749 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to '')
-rw-r--r-- | src/screen.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/src/screen.c b/src/screen.c index 7f21ec934..13e1975c1 100644 --- a/src/screen.c +++ b/src/screen.c @@ -584,12 +584,6 @@ ncurses_init() screen->mode = 0; screen->cols = COLS; screen->rows = LINES; -} - -int -screen_init(mpdclient_t *c) -{ - gint i; screen->buf = g_malloc(screen->cols); screen->buf_size = screen->cols; @@ -649,6 +643,11 @@ screen_init(mpdclient_t *c) wbkgd(screen->status_window.w, COLOR_PAIR(COLOR_STATUS)); colors_use(screen->progress_window.w, COLOR_PROGRESSBAR); } +} + +screen_init(mpdclient_t *c) +{ + gint i; /* initialize screens */ i=0; |