Path: utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!apple!gem.mps.ohio-state.edu!uwm.edu!cs.utexas.edu!milano!bigtex!rena!kogwy!titcca!etlcom!handa From: handa@etlcom.etl.JUNET (Kenichi Handa) Newsgroups: gnu.emacs.bug Subject: Strange code in re_search_2 of src/regex.c Message-ID: <33525@etlcom.etl.JUNET> Date: 15 Sep 89 16:48:55 GMT Distribution: gnu Organization: Electrotechnical Laboratory, Tsukuba Science City Lines: 24 At the tail of function 're_search_2' in src/regex.c (GNU Emacs 18.55), I found the following strange code: if (0 <= val) { if (val == -2) return -2; <--- return startpos; } The line indicated by an arrow is never executed. It should be: if (0 <= val) return startpos; else if (val == -2) return -2; -- Ken'ichi HANDA JUNET: handa@etl.junet CSNET: handa@etl.jp ARPA: handa%etl.jp@relay.cs.net VOICE: JAPAN-298-58-5916 FAX: JAPAN-298-58-5918 ADDRESS: Machine Inference Section, ElectroTechnical Laboratory Umezono 1-1-4, Tsukuba City, JAPAN, 305