main: Initialize buf before calling dev_get_rd_flags()
This commit is contained in:
1 parent
aeb9e897db
commit
c90c6319fe
1 file changed
+1
@@ -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 )
|
||||
|
||||
Reference in new issue
Block a user