patch-src_history_c 665 B

123456789101112131415
  1. $OpenBSD: patch-src_history_c,v 1.1 2010/05/24 10:10:39 espie Exp $
  2. --- src/history.c.orig Mon May 24 12:07:15 2010
  3. +++ src/history.c Mon May 24 12:08:26 2010
  4. @@ -66,7 +66,9 @@ static Aline blankline[1] = { BLANK_ALINE };
  5. static struct History input[1];
  6. static int wnmatch = 4, wnlines = 5, wdmatch = 2, wdlines = 5;
  7. -struct History globalhist[1], localhist[1];
  8. +static struct History globalhist_storage, localhist_storage;
  9. +struct History *globalhist = &globalhist_storage,
  10. + *localhist = &localhist_storage;
  11. int log_count = 0;
  12. int norecord = 0; /* supress history (but not log) recording */
  13. int nolog = 0; /* supress log (but not history) recording */