Permalink
Browse files

fix crash in status command

  • Loading branch information...
pstorz authored and franku committed Sep 24, 2018
1 parent b6edb33 commit 225b5547e4e29ebff80edaa3c9147ff75388c478
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 225b554

Please sign in to comment.