Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 359232
b: refs/heads/master
c: 527ffe5
h: refs/heads/master
v: v3
  • Loading branch information
Michal Marek committed Nov 20, 2012
1 parent 963d80a commit 8c1d394
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 177acf78468bf5c359bcb8823ee3bd48b04b8380
refs/heads/master: 527ffe5811e39f9997a08902628c35068a46a5b7
8 changes: 4 additions & 4 deletions trunk/scripts/kconfig/zconf.lex.c_shipped
Original file line number Diff line number Diff line change
Expand Up @@ -802,7 +802,7 @@ static void zconf_endfile(void);

static void new_string(void)
{
text = malloc(START_STRSIZE);
text = xmalloc(START_STRSIZE);
text_asize = START_STRSIZE;
text_size = 0;
*text = 0;
Expand All @@ -824,7 +824,7 @@ static void append_string(const char *str, int size)

static void alloc_string(const char *str, int size)
{
text = malloc(size + 1);
text = xmalloc(size + 1);
memcpy(text, str, size);
text[size] = 0;
}
Expand Down Expand Up @@ -2343,7 +2343,7 @@ void zconf_initscan(const char *name)
exit(1);
}

current_buf = malloc(sizeof(*current_buf));
current_buf = xmalloc(sizeof(*current_buf));
memset(current_buf, 0, sizeof(*current_buf));

current_file = file_lookup(name);
Expand All @@ -2354,7 +2354,7 @@ void zconf_nextfile(const char *name)
{
struct file *iter;
struct file *file = file_lookup(name);
struct buffer *buf = malloc(sizeof(*buf));
struct buffer *buf = xmalloc(sizeof(*buf));
memset(buf, 0, sizeof(*buf));

current_buf->state = YY_CURRENT_BUFFER;
Expand Down

0 comments on commit 8c1d394

Please sign in to comment.