diff options
Diffstat (limited to 'src/main.c')
-rw-r--r-- | src/main.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -193,7 +193,8 @@ int main(int argc, char *argv[]) }; float *kernel = NULL; - if (!strcmp(filter, "edge")) kernel = edge; + if (!filter) usage(); + else if (!strcmp(filter, "edge")) kernel = edge; else if (!strcmp(filter, "blur")) kernel = blur; else if (!strcmp(filter, "sharpen")) kernel = sharpen; else usage(); |