Changes in keymap.c [4c7c21f:47e0a6a]
Legend:
- Unmodified
- Added
- Removed
-
keymap.c
r4c7c21f r47e0a6a 9 9 { 10 10 if (!name || !desc) return(-1); 11 km->name = g_strdup(name);12 km->desc = g_strdup(desc);13 owl_list_create(&km->bindings);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); 14 14 km->parent = NULL; 15 15 km->default_fn = default_fn; … … 179 179 /* NOTE: keyhandler has private access to the internals of keymap */ 180 180 181 voidowl_keyhandler_init(owl_keyhandler *kh)182 { 183 owl_dict_create(&kh->keymaps);181 int owl_keyhandler_init(owl_keyhandler *kh) 182 { 183 if (0 != owl_dict_create(&kh->keymaps)) return(-1); 184 184 kh->active = NULL; 185 185 owl_keyhandler_reset(kh); 186 return(0); 186 187 } 187 188
Note: See TracChangeset
for help on using the changeset viewer.