Mercurial > pt1.oyama
diff src/recpt1.c @ 154:578ebda88997
cosmetic changes.
author | Naoya OYAMA <naoya.oyama@gmail.com> |
---|---|
date | Sun, 02 Sep 2012 16:38:43 +0900 |
parents | 30e91361506a |
children | 5d010d0ff6a1 |
line wrap: on
line diff
--- a/src/recpt1.c Sun Sep 02 02:28:05 2012 +0900 +++ b/src/recpt1.c Sun Sep 02 16:38:43 2012 +0900 @@ -73,7 +73,7 @@ f = fopen(filename, "r"); if(!f) { return channel_info_list; - } + } channel_info_list = malloc(sizeof(*channel_info_list)); if(!channel_info_list) return NULL; @@ -103,8 +103,8 @@ if (p == NULL) { /* FILE ERROR */ free(channel_info); - channel_info = NULL; - continue; + channel_info = NULL; + continue; } *p = '\0'; channel_info->tp = ++p;