--- projects/libstatgrab/src/libstatgrab/error.c 2004/04/06 22:09:22 1.2 +++ projects/libstatgrab/src/libstatgrab/error.c 2004/04/07 09:44:08 1.3 @@ -18,7 +18,7 @@ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA * 02111-1307 USA * - * $Id: error.c,v 1.2 2004/04/06 22:09:22 ats Exp $ + * $Id: error.c,v 1.3 2004/04/07 09:44:08 tdb Exp $ */ #ifdef HAVE_CONFIG_H @@ -44,6 +44,8 @@ const char *sg_str_error(sg_error code) { switch (code) { case SG_ERROR_NONE: return "no error"; + case SG_ERROR_MALLOC_FAILED: + return "malloc failed - out of memory"; } return "unknown error"; }