OpenBSD CVS

CVS log for src/usr.bin/calendar/io.c


[BACK] Up to [local] / src / usr.bin / calendar

Request diff between arbitrary revisions


Default branch: MAIN
Current tag: OPENBSD_6_3


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@

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.