main: Initialize buf before calling dev_get_rd_flags()

This commit is contained in:
Pali Rohár committed 2016-02-23 18:38:48 +01:00
1 parent aeb9e897db
commit c90c6319fe
1 file changed
+1
+1
View File
@@ -1000,6 +1000,7 @@ int main(int argc, char **argv) {
printf("\n");
if ( ret == 1 ) {
buf[0] = 0;
ret = dev_get_rd_flags(dev, buf, sizeof(buf));
printf("R&D flags: ");
if ( ret < 0 )