#1956: Confused test 2 in t/src/misc.t
----------------------+-----------------------------------------------------
Reporter: doughera | Owner:
Type: bug | Status: new
Priority: normal | Milestone:
Component: none | Version: 2.11.0
Severity: medium | Keywords:
Lang: | Patch: new
Platform: |
----------------------+-----------------------------------------------------
Comment(by NotFound):
'char *buf = "unchanged";' declares a char pointer that points to a
constant char array. The "unchanged" is located in a constant segment, if
the architecture has such concept, so if the functions is wrong and tries
to modify it the result will be a segfault, not a failed test.
So a better way would be: char buf[] = "unchanged";
BTW there is no attachment in the ticket.
--
Ticket URL: <https://trac.parrot.org/parrot/ticket/1956#comment:1>
Parrot <https://trac.parrot.org/parrot/>
Parrot Development
_______________________________________________
parrot-tickets mailing list
[email protected]
http://lists.parrot.org/mailman/listinfo/parrot-tickets