nullpointer and empty string were confused.
authorsater <none@none>
Thu, 9 Oct 1986 16:12:24 +0000 (16:12 +0000)
committersater <none@none>
Thu, 9 Oct 1986 16:12:24 +0000 (16:12 +0000)
Long live the PDP and VAX

mach/proto/ncg/compute.c

index 0de478f..c86e073 100644 (file)
@@ -340,7 +340,7 @@ result_t compute(node) register node_p node; {
        case EX_TOSTRING:
        assert(leaf1.e_typ == EV_INT);
                result.e_typ = EV_ADDR;
-               result.e_v.e_addr.ea_str = 0;
+               result.e_v.e_addr.ea_str = "";
                result.e_v.e_addr.ea_off = leaf1.e_v.e_con;
                return(result);
 #ifdef REGVARS