aboutsummaryrefslogtreecommitdiffstats
path: root/device/uapi.go
diff options
context:
space:
mode:
Diffstat (limited to 'device/uapi.go')
-rw-r--r--device/uapi.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/device/uapi.go b/device/uapi.go
index 2110a67..277c02f 100644
--- a/device/uapi.go
+++ b/device/uapi.go
@@ -403,7 +403,8 @@ func (device *Device) IpcHandle(socket net.Conn) {
case "set=1\n":
err = device.IpcSetOperation(buffered.Reader)
case "get=1\n":
- nextByte, err := buffered.ReadByte()
+ var nextByte byte
+ nextByte, err = buffered.ReadByte()
if err != nil {
return
}