(After stating the foregoing facts.) Where an application for the writ of habeas corpus affirmatively shows on its face, as here, that the restraint is legal, the judge before whom the writ is made returnable has the power, on general demurrer, to dismiss the writ and remand the applicant. In such instance the general demurrer, under our practice, serves the purpose of a motion to quash the writ for insufficiency of the allegations in the petition.
Smith
v.
Milton,
149
Ga. 28
(
In
McLarry
v.
State,
72
Ga. App.
864 (
It is urged that the three offenses charged against the accused represent a single criminal enterprise of about the same date, and were treated as such by the court in permitting them to be tried together before one jury; and that, while the jury returned three like verdicts, one on each indictment, these should have been construed as one verdict fixing punishment at from three to four years in the penitentiary. There is clearly no merit in this contention. Each indictment charged the accused with a separate and distinct offense, and his consent to try all three cases at the same time before one jury did not change that fact. The only effect of the agreement was to permit the cases to be tried jointly, which could only be done by his consent. Habeas corpus, however, is never a substitute for a writ of error, or other remedial procedure to correct errors in the trial of a criminal case. This writ is the appropriate remedy only when the court was without jurisdiction in the premises, or where it exceeded its jurisdiction in passing the sentence by virtue of which the party is imprisoned, so that such sentence is not merely erroneous, b.ut is absolutely void.
McFarland
v.
Donaldson,
115
Ga.
567 (
It therefore follows from what we have ruled in- the preceding divisions that the court did not err in sustaining the general demurrer and remanding the applicant to the custody of the warden.
Judgment affirmed.
