Commit a282f1bc authored by claes's avatar claes

Avoid add of null nodename

parent e242c482
/* /*
* Proview $Id: co_statusmon_nodelistnav.cpp,v 1.6 2007-10-02 15:53:20 claes Exp $ * Proview $Id: co_statusmon_nodelistnav.cpp,v 1.7 2008-03-03 11:02:27 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
...@@ -1030,6 +1030,9 @@ void NodelistNav::add_node( char *name, char *description, char *opplace) ...@@ -1030,6 +1030,9 @@ void NodelistNav::add_node( char *name, char *description, char *opplace)
int idx = 0; int idx = 0;
bool found; bool found;
if ( strcmp( name, "") == 0)
return;
brow_GetSelectedNodes( brow->ctx, &nodelist, &node_count); brow_GetSelectedNodes( brow->ctx, &nodelist, &node_count);
if ( node_count > 0) { if ( node_count > 0) {
......
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