diff --git a/src/drivertool.c b/src/drivertool.c index 13575dd1c..5eceda5fc 100644 --- a/src/drivertool.c +++ b/src/drivertool.c @@ -24,6 +24,7 @@ #include #include #include +#include #include #include #include @@ -181,7 +182,7 @@ int main(int argc, char **argv) if (argv[1][0] == '-') { - ir_protocol_t p; + ir_protocol_t p = IR_PROTOCOL_UNKNOWN; switch (argv[1][1]) {