~arivigo/cras

78ba723a57a8b47431a0a8df18355d0ae9966351 — Ariadna Vigo 21 days ago b878bd3
Fix for segfault when opening file
1 files changed, 2 insertions(+), 2 deletions(-)

M cras.c
M cras.c => cras.c +2 -2
@@ 370,11 370,11 @@ main(int argc, char *argv[])
		}
	}

	if (argc <= 0) {
	if (optind >= argc) {
		if ((fileptr = getenv("CRAS_DEF_FILE")) == NULL)
			die("CRAS_DEF_FILE environment variable not set.");
	} else {
		fileptr = argv[0];
		fileptr = argv[optind];
	}

	switch (mode) {