]> git.gag.com Git - debian/gnuradio/blobdiff - usrp/host/apps/usrper.cc
Imported Upstream version 3.0.4
[debian/gnuradio] / usrp / host / apps / usrper.cc
index d70128480344c27f31be6aa6d8e9be7fdc8f4661..88a438d55742e84e52345c7063817c3f77ef10fb 100644 (file)
@@ -6,7 +6,7 @@
  *
  * This program is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
+ * the Free Software Foundation; either version 3 of the License, or
  * (at your option) any later version.
  *
  * This program is distributed in the hope that it will be useful,
@@ -298,7 +298,7 @@ main (int argc, char **argv)
   else if (strcmp (cmd, "i2c_write") == 0){
     CHKARGS (2);
     int        i2c_addr = strtol (argv[optind], 0, 0);
-    int        len;
+    int        len = 0;
     char *hex_string  = argv[optind + 1];
     unsigned char *buf = hex_string_to_binary (hex_string, &len);
     if (buf == 0)