proceed=true;
while (proceed==true) {
switch (phase) {
- case 0 : //do we have a string
- if ((key==(char *)0)||(strlen(key)==0))
- key="NULL"; //no, force a 'NULL' string.
+ case 0 : //do we have a string to encode
+ if ((key==(char *)0)||(strlen(key)==0)) {
+ gooddata=strdup("NULL"); //no, force a 'NULL' string.
+ phase=999;
+ }
break;
case 1 : //checking the key encoding
if ((sqlkey=sql_checkencoding(key))==(char *)0) {
(void) rou_alert(0,"%s dbkey <%s> encoding is wrong (config?)",OPEP,key);
+ gooddata=strdup("NULL"); //Let assum NULL
phase=999; //trouble trouble
}
break;