Commit 49fe5690 authored by conrad's avatar conrad

oggz-chop: check if PATH_TRANSLATED is defined, warn about CGI configuration...

oggz-chop: check if PATH_TRANSLATED is defined, warn about CGI configuration error otherwise (to stderr, ie. web server logs)


git-svn-id: http://svn.annodex.net/liboggz/trunk@3812 8158c8cd-e7e1-0310-9fa4-c5954c97daef
parent 2fe19562
......@@ -146,6 +146,11 @@ cgi_main (OCState * state)
/*photo_init (&params->in, path_translated);*/
if (path_translated == NULL) {
fprintf (stderr, "oggz-chop: CGI configuration error: PATH_TRANSLATED undefined\n");
return -1;
}
/* Get Last-Modified time */
if (stat (path_translated, &statbuf) == -1) {
switch (errno) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment