~jpsamaroo/lisgd

ee47ac2a5b69573ceef3d283914d2f490598908d — Miles Alan 1 year, 6 months ago 7f977f9
Remove extra variable
1 files changed, 2 insertions(+), 3 deletions(-)

M lisgd.c
M lisgd.c => lisgd.c +2 -3
@@ 294,12 294,11 @@ main(int argc, char *argv[])
			orientation = atoi(argv[++i]);
		} else if (!strcmp(argv[i], "-g")) {
			gestsarrlen++;
			void *ptr = realloc(gestsarr, (gestsarrlen * sizeof(Gesture)));
			if ( ptr == NULL ) {
			gestsarr = realloc(gestsarr, (gestsarrlen * sizeof(Gesture)));
			if (gestsarr == NULL) {
				perror("Could not allocate memory");
				exit(EXIT_FAILURE);
			}
			gestsarr = ptr;
			gestpt = strtok(argv[++i], ",");
			for (j = 0; gestpt != NULL && j < 3;	gestpt = strtok(NULL, ","), j++) {
				switch(j) {