Skip to content

Commit fb37e52

Browse files
committed
edit+2: edit operator checking
1 parent 5bf4999 commit fb37e52

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

0x0F-function_pointers/3-main.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ int main(int argc, char **argv)
2323
num2 = atoi(argv[3]);
2424
operator = argv[2];
2525

26-
if (get_op_func(operator) == NULL)
26+
if (operator[1] || get_op_func(operator) == NULL)
2727
{
2828
printf("Error\n");
2929
exit(99);

0 commit comments

Comments
 (0)