]> git.pond.sub.org Git - empserver/blobdiff - src/lib/common/xundump.c
Fix trailing whitespace
[empserver] / src / lib / common / xundump.c
index abef9c27e664d1a6b73198938a3d44de72e2c9e8..16056c25c87f9ef2c18dd268662bdab23c317f3b 100644 (file)
@@ -26,7 +26,7 @@
  *  ---
  *
  *  xundump.c: Load back xdump output
- * 
+ *
  *  Known contributors to this file:
  *     Ron Koenderink, 2005
  *     Markus Armbruster, 2005-2008
@@ -671,9 +671,7 @@ symval(struct castr *ca, int i)
 {
     int type = ca->ca_table;
 
-    if (ef_check(type) < 0)
-       return -1;
-    if (ef_cadef(type) == symbol_ca)
+    if (type != EF_BAD && ef_cadef(type) == symbol_ca)
        /* symbol table, value is in the table */
        return ((struct symbol *)ef_ptr(type, i))->value;
     /* value is the table index */