Commit 379f1fa6 authored by claes's avatar claes

Bugfix, ldhses not found for directory db, if directory db didn't exist

parent e8e4ce67
/* /*
* Proview $Id: wb_cmd_main.cpp,v 1.1 2007-01-04 07:29:02 claes Exp $ * Proview $Id: wb_cmd_main.cpp,v 1.2 2008-04-01 10:35:32 claes Exp $
* Copyright (C) 2005 SSAB Oxelsund AB. * Copyright (C) 2005 SSAB Oxelsund AB.
* *
* This program is free software; you can redistribute it and/or * This program is free software; you can redistribute it and/or
...@@ -118,10 +118,9 @@ int Cmd::attach_volume_cb( void *ctx, ...@@ -118,10 +118,9 @@ int Cmd::attach_volume_cb( void *ctx,
{ {
if ( cmd_volume_p != 0) { if ( cmd_volume_p != 0) {
// Attach argument volume // Attach argument volume
ldh_VolumeNameToId( cmd->wbctx, cmd_volume_p, &volid); sts = ldh_VolumeNameToId( cmd->wbctx, cmd_volume_p, &volid);
if ( EVEN(sts)) return sts;
} }
else { if ( cmd_volume_p == 0 || EVEN(sts)) {
// Attach first rootvolume, or if no rootvolume exist some other volume // Attach first rootvolume, or if no rootvolume exist some other volume
sts = ldh_GetVolumeList( cmd->wbctx, &vid); sts = ldh_GetVolumeList( cmd->wbctx, &vid);
while ( ODD(sts)) { while ( ODD(sts)) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment