diff options
author | jaortega <jaortega> | 2000-12-01 23:35:35 +0000 |
---|---|---|
committer | jaortega <jaortega> | 2000-12-01 23:35:35 +0000 |
commit | 99cc30339d9cb98b240a6e0ef59c333fe3194018 (patch) | |
tree | 925888afb5390b55b38345846b5a06084c92de35 /mixlib/mix_parser.c | |
parent | 6861d82f0bca390a95609d548146f6629bde264f (diff) | |
download | mdk-99cc30339d9cb98b240a6e0ef59c333fe3194018.tar.gz mdk-99cc30339d9cb98b240a6e0ef59c333fe3194018.tar.bz2 |
removed checks for null pointer after g_new ()
Diffstat (limited to 'mixlib/mix_parser.c')
-rw-r--r-- | mixlib/mix_parser.c | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/mixlib/mix_parser.c b/mixlib/mix_parser.c index 80dff45..13df539 100644 --- a/mixlib/mix_parser.c +++ b/mixlib/mix_parser.c @@ -116,12 +116,6 @@ mix_parser_new (const gchar *in_file) if ( f == NULL ) return NULL; result = g_new (mix_parser_t, 1); - if ( result == NULL ) - { - g_warning (_("No system resources")); - mix_file_delete (f); - return NULL; - } result->symbol_table = mix_symbol_table_new (); result->ls_table = mix_symbol_table_new (); result->cur_ls = 0; @@ -496,10 +490,6 @@ mix_parser_add_raw (mix_parser_t *parser, mix_word_t word, guint lineno) if ( parser->status == MIX_PERR_NOCOMP || parser->status == MIX_PERR_OK ) { ins_node_ *node = g_new (ins_node_, 1); - if ( node == NULL ) { - g_warning (_("Unable to allocate memory")); - return; - } node->ins = word; node->lineno = lineno; g_tree_insert (parser->ins_table, (gpointer)((guint)parser->loc_count), |