Skip to content

Commit

Permalink
fix(bacnet-asn1): correct variable initialization for datetime decoding
Browse files Browse the repository at this point in the history
  • Loading branch information
fh1ch committed Jun 4, 2017
1 parent 30d72aa commit 3bc1591
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/bacnet-asn1.js
Original file line number Diff line number Diff line change
Expand Up @@ -1037,7 +1037,7 @@ var decode_application_time = function(buffer, offset) {
};

var decode_bacnet_datetime = function(buffer, offset) {
var len;
var len = 0;
var date = decode_application_date(buffer, offset + len);
len += date.len;
var time = decode_application_time(buffer, offset + len);
Expand Down

0 comments on commit 3bc1591

Please sign in to comment.