Changeset fda61d3 for keymap.c


Ignore:
Timestamp:
May 20, 2011, 3:59:31 PM (10 years ago)
Author:
David Benjamin <davidben@mit.edu>
Branches:
master, release-1.8, release-1.9
Children:
351c535
Parents:
3b8a563
git-author:
David Benjamin <davidben@mit.edu> (05/07/11 15:17:37)
git-committer:
David Benjamin <davidben@mit.edu> (05/20/11 15:59:31)
Message:
g_strdup and g_new0 never fail

Remove pointless failure checks cluttering the code.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • keymap.c

    r47e0a6a rfda61d3  
    99{
    1010  if (!name || !desc) return(-1);
    11   if ((km->name = g_strdup(name)) == NULL) return(-1);
    12   if ((km->desc = g_strdup(desc)) == NULL) return(-1);
    13   if (0 != owl_list_create(&km->bindings)) return(-1);
     11  km->name = g_strdup(name);
     12  km->desc = g_strdup(desc);
     13  owl_list_create(&km->bindings);
    1414  km->parent = NULL;
    1515  km->default_fn = default_fn;
Note: See TracChangeset for help on using the changeset viewer.