=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/tmux/cmd-source-file.c,v retrieving revision 1.7 retrieving revision 1.8 diff -c -r1.7 -r1.8 *** src/usr.bin/tmux/cmd-source-file.c 2009/11/26 21:37:13 1.7 --- src/usr.bin/tmux/cmd-source-file.c 2010/02/06 17:15:33 1.8 *************** *** 1,4 **** ! /* $OpenBSD: cmd-source-file.c,v 1.7 2009/11/26 21:37:13 nicm Exp $ */ /* * Copyright (c) 2008 Tiago Cunha --- 1,4 ---- ! /* $OpenBSD: cmd-source-file.c,v 1.8 2010/02/06 17:15:33 nicm Exp $ */ /* * Copyright (c) 2008 Tiago Cunha *************** *** 89,100 **** cmd_source_file_exec(struct cmd *self, struct cmd_ctx *ctx) { struct cmd_source_file_data *data = self->data; ! char *cause; ! if (load_cfg(data->path, ctx, &cause) != 0) { ! ctx->error(ctx, "%s", cause); ! xfree(cause); ! return (-1); } return (0); --- 89,106 ---- cmd_source_file_exec(struct cmd *self, struct cmd_ctx *ctx) { struct cmd_source_file_data *data = self->data; ! char **causes; ! u_int i, ncauses; ! causes = NULL; ! ncauses = 0; ! ! if (load_cfg(data->path, ctx, &ncauses, &causes) != 0) { ! for (i = 0; i < ncauses; i++) { ! ctx->print(ctx, "%s", causes[i]); ! xfree(causes[i]); ! } ! xfree(causes); } return (0);