~sircmpwn/scurvy

3ce0ba65d707c585308297719a09648175a7b599 — emersion 2 years ago 3f438f7
Fixes build
2 files changed, 4 insertions(+), 2 deletions(-)

M src/child.c
M src/config.c
M src/child.c => src/child.c +2 -0
@@ 26,6 26,8 @@
#include "log.h"
#include "child.h"

#define SIGUNUSED 31

static void init_child_pty(struct scurvy_child *child) {
	if (grantpt(child->fd) < 0) {
		close(child->fd);

M src/config.c => src/config.c +2 -2
@@ 165,13 165,13 @@ bool load_scurvy_config(struct scurvy_vterm *term, const char *file) {
	if (file != NULL) {
		path = strdup(file);
	} else {
		path = get_config_path(config_paths, 3);
		path = get_config_path(config_paths, 1);
	}

	struct scurvy_config *old_config = config;
	config = calloc(1, sizeof(struct scurvy_config));

	config_defaults(config);
	config_defaults();

	bool success = load_config(path, term, config);