Skip to content

Commit

Permalink
fix: initialize ONVIF packets array
Browse files Browse the repository at this point in the history
The packets array was previously not initialized causing an error when trying
to push a value to null

Change-Id: If5eac9672477f896f0fb209cdbb02422d27cdd66
  • Loading branch information
AnderssonChristian committed Jun 20, 2019
1 parent 16a3811 commit 02b1c44
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/components/onvifdepay/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import {
export class ONVIFDepay extends Tube {
constructor(handler: (msg: XmlMessage) => void) {
let XMLPayloadType: number
let packets: Buffer[]
let packets: Buffer[] = []

const incoming = new Transform({
objectMode: true,
Expand Down

0 comments on commit 02b1c44

Please sign in to comment.