Permalink
Browse files

fix crash in status command

  • Loading branch information...
pstorz committed Sep 24, 2018
1 parent 709f470 commit 03b654465e94887e4b2322dc9cbf4a5500ad7d4e
Showing with 1 addition and 1 deletion.
  1. +1 −1 core/src/stored/status.cc
@@ -259,7 +259,7 @@ static void get_device_specific_status(DeviceResource *device,
dst.status = GetPoolMemory(PM_MESSAGE);
dst.status_length = 0;

if (device->dev->DeviceStatus(&dst)) {
if (device && device->dev && device->dev->DeviceStatus(&dst)) {
if (dst.status_length > 0) {
sendit(dst.status, dst.status_length, sp);
}

0 comments on commit 03b6544

Please sign in to comment.