Up to [local] / src / usr.bin / calendar
Request diff between arbitrary revisions
Default branch: MAIN
Current tag: OPENBSD_6_2
Revision 1.47 / (download) - annotate - [select for diffs], Mon Sep 25 19:13:56 2017 UTC (6 years, 7 months ago) by krw
Branch: MAIN
CVS Tags: OPENBSD_6_4_BASE,
OPENBSD_6_4,
OPENBSD_6_3_BASE,
OPENBSD_6_3,
OPENBSD_6_2_BASE,
OPENBSD_6_2
Changes since 1.46: +7 -5 lines
Diff to previous 1.46 (colored)
Calling waitpid(pid,...) where pid is either uninitialized or -1 because vflork() failed is bad. Initialize pid to -1 and call waitpid() only when pid != -1. Uninitialized use of pid found by clang. Suggestion of -1 from millert@. ok millert@