commit ca2104da15f02288a34f02aa175312a2a4c779ef from: Sven M. Hallberg date: Thu Sep 15 11:34:38 2022 UTC use structure assignment in act_ks_value This is a drive-by revert of a useless change in everyone's favorite commit, 6e5955c4 ("Most of the code folded in"). The line in question is a structure assignment, which is in C99 and behaves exactly as one would expect. commit - 6de503e15b1fd11418af24d8c6ade3348a315e8d commit + ca2104da15f02288a34f02aa175312a2a4c779ef blob - bac5a1f914864b7fb051c8409f67f5831da439fe blob + bcbccfb3f15fb44477741d214c21ed5e2c7b3ac3 --- pdf.c +++ pdf.c @@ -4441,10 +4441,8 @@ act_ks_value(const HParseResult *p, void *u) if (res == NULL) { HBytes b = {NULL, 0}; const HParsedToken *v = dictentry(spec->dict, "Type"); - if (v != NULL && v->token_type == TT_BYTES) { - b.token = v->bytes.token; - b.len = v->bytes.len; - } + if (v != NULL && v->token_type == TT_BYTES) + b = v->bytes; if (b.len > INT_MAX) b.len = INT_MAX; log_message(7, "parse error in stream (type %*s)\n",